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 = {}