From 774099d65f85d27e3823946976038efff4a28875 Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 22 Nov 2023 14:25:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=92=88=E5=AF=B9antv=E6=95=A3?= =?UTF-8?q?=E7=82=B9=E5=9B=BE=E6=A8=AA=E8=BD=B4=E5=86=85=E6=9C=89=E7=BA=AC?= =?UTF-8?q?=E5=BA=A6=E7=9A=84=E6=83=85=E5=86=B5=EF=BC=8C=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E7=B1=BB=E5=9E=8B=E6=B8=85=E7=A9=BA=E6=A8=AA?= =?UTF-8?q?=E8=BD=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/views/chart/view/ChartEdit.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/frontend/src/views/chart/view/ChartEdit.vue b/core/frontend/src/views/chart/view/ChartEdit.vue index 60a7f1637c..0fa7b8e4d4 100644 --- a/core/frontend/src/views/chart/view/ChartEdit.vue +++ b/core/frontend/src/views/chart/view/ChartEdit.vue @@ -2175,6 +2175,12 @@ export default { x.sort = 'none' }) } + if ((newVal.type !== 'scatter' || newVal.type === 'scatter' && newVal.render === 'echarts') && (oldVal.type === 'scatter' && oldVal.render === 'antv')) { + // 针对横轴内有指标的情况 + if (this.view.xaxis && this.view.xaxis.length > 0 && this.view.xaxis[0] && this.view.xaxis[0].groupType === 'q') { + this.view.xaxis = [] + } + } if (newVal.type !== oldVal.type || newVal.render !== oldVal.render) { this.setChartDefaultOptions() this.calcData(true, 'chart', true, newVal.type !== oldVal.type, newVal.render !== oldVal.render)