From 0337a575d97c7dcf6ceed0e3906aea42e282f5ee Mon Sep 17 00:00:00 2001 From: xile611 Date: Tue, 24 Sep 2024 19:21:42 +0800 Subject: [PATCH 1/2] fix: fix title of axis when the bounds is empty, fix #3265 --- .../vchart/src/component/axis/cartesian/axis.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/vchart/src/component/axis/cartesian/axis.ts b/packages/vchart/src/component/axis/cartesian/axis.ts index 002758e3a..3d53c0b4c 100644 --- a/packages/vchart/src/component/axis/cartesian/axis.ts +++ b/packages/vchart/src/component/axis/cartesian/axis.ts @@ -1,5 +1,5 @@ import type { ICartesianHorizontal } from './interface/spec'; -import { last, type IBounds, type IBoundsLike, type Maybe } from '@visactor/vutils'; +import { Bounds, last, type IBounds, type IBoundsLike, type Maybe } from '@visactor/vutils'; // eslint-disable-next-line no-duplicate-imports import type { IEffect, IModelInitOption, IModelSpecInfo } from '../../../model/interface'; import type { ICartesianSeries } from '../../../series/interface'; @@ -627,15 +627,18 @@ export abstract class CartesianAxis Date: Tue, 24 Sep 2024 19:23:57 +0800 Subject: [PATCH 2/2] docs: update changlog of rush --- .../vchart/fix-empty-axis-title_2024-09-24-11-23.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 common/changes/@visactor/vchart/fix-empty-axis-title_2024-09-24-11-23.json diff --git a/common/changes/@visactor/vchart/fix-empty-axis-title_2024-09-24-11-23.json b/common/changes/@visactor/vchart/fix-empty-axis-title_2024-09-24-11-23.json new file mode 100644 index 000000000..036861d9b --- /dev/null +++ b/common/changes/@visactor/vchart/fix-empty-axis-title_2024-09-24-11-23.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "fix: fix title of axis when the bounds is empty, fix #3265\n\n", + "type": "none", + "packageName": "@visactor/vchart" + } + ], + "packageName": "@visactor/vchart", + "email": "dingling112@gmail.com" +} \ No newline at end of file