From 8f00d8678cbae9cfb5765cc04b45365b74fa0679 Mon Sep 17 00:00:00 2001 From: ulleo Date: Mon, 20 Nov 2023 17:35:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=9A=90=E8=97=8F=E5=AF=B9=E7=A7=B0?= =?UTF-8?q?=E6=9F=B1=E7=8A=B6=E5=9B=BE=E7=9A=84=E7=BA=B5=E8=BD=B4=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/views/chart/chart/util.js | 1 - core/frontend/src/views/chart/view/ChartEdit.vue | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/frontend/src/views/chart/chart/util.js b/core/frontend/src/views/chart/chart/util.js index e41b3123ab..68b309c8f9 100644 --- a/core/frontend/src/views/chart/chart/util.js +++ b/core/frontend/src/views/chart/chart/util.js @@ -1602,7 +1602,6 @@ export const TYPE_CONFIGS = [ 'x-axis-selector-ant-v': [ 'show', 'position', - 'nameTextStyle', 'splitLine', 'axisForm', 'axisLabel' diff --git a/core/frontend/src/views/chart/view/ChartEdit.vue b/core/frontend/src/views/chart/view/ChartEdit.vue index d0ec9c8165..60a7f1637c 100644 --- a/core/frontend/src/views/chart/view/ChartEdit.vue +++ b/core/frontend/src/views/chart/view/ChartEdit.vue @@ -2160,6 +2160,10 @@ export default { type: 'warning' }) this.view.xaxis = [] + } else if (newVal.type === 'bidirectional-bar') { + if (this.view.customStyle && this.view.customStyle.xAxis && this.view.customStyle.xAxis.name) { + this.view.customStyle.xAxis.name = undefined + } } if (newVal.type !== oldVal.type) { this.view.senior.threshold = {}