From f7b90fd648394c6d1cf746e0c8514d490daa0722 Mon Sep 17 00:00:00 2001 From: wisonic Date: Tue, 22 Oct 2024 16:16:21 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E4=B8=AD=E5=BF=83=E7=82=B9=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E5=92=8C=E6=96=87=E6=A1=88=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/zh-CN.ts | 3 ++- .../editor/editor-style/components/BasicStyleSelector.vue | 4 ++-- .../src/views/chart/components/editor/util/chart.ts | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 9a1a2c6a8e..2731a814dd 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -1542,7 +1542,8 @@ export default { show_label: '显示标签', security_code: '安全密钥', auto_fit: '自适应缩放', - zoom_level: '缩放等级' + zoom_level: '缩放等级', + central_point: '中心点' }, dataset: { scope_edit: '仅编辑时生效', diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue index aa4b9b80a6..6dee12afbd 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/BasicStyleSelector.vue @@ -663,7 +663,7 @@ onMounted(() => { { Date: Tue, 22 Oct 2024 16:17:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E5=88=86?= =?UTF-8?q?=E7=BB=84=E6=9F=B1=E7=8A=B6=E5=9B=BE=E6=97=A5=E6=9C=9F=E5=AD=90?= =?UTF-8?q?=E7=BB=B4=E5=BA=A6=E6=8E=92=E5=BA=8F=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/charts/bar/bar.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts index 691da4991e..bfa692942c 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts @@ -488,7 +488,12 @@ export class GroupBar extends StackBar { this.baseOptions = { ...this.baseOptions, isGroup: true, - isStack: false + isStack: false, + meta: { + category: { + type: 'cat' + } + } } this.axis = [...BAR_AXIS_TYPE, 'xAxisExt'] }