From 583b108cb9cc71c1c2c7ba0859aa6e76684fafec Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 22 Aug 2022 16:48:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=9D=A2=E7=A7=AF=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/chart/common/common_antv.js | 4 ++-- frontend/src/views/chart/view/ChartEdit.vue | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/frontend/src/views/chart/chart/common/common_antv.js b/frontend/src/views/chart/chart/common/common_antv.js index 25432a9e9f..c2945b25af 100644 --- a/frontend/src/views/chart/chart/common/common_antv.js +++ b/frontend/src/views/chart/chart/common/common_antv.js @@ -628,7 +628,7 @@ function transAxisPosition(chart, axis) { export function getSlider(chart) { let senior = {} let cfg = false - if (chart.senior && chart.type && (chart.type.includes('bar') || chart.type.includes('line') || chart.type.includes('mix'))) { + if (chart.senior && chart.type && (chart.type.includes('bar') || chart.type.includes('line') || chart.type.includes('mix') || chart.type.includes('area'))) { senior = JSON.parse(chart.senior) if (senior.functionCfg) { if (senior.functionCfg.sliderShow) { @@ -645,7 +645,7 @@ export function getSlider(chart) { export function getAnalyse(chart) { let senior = {} const assistLine = [] - if (chart.senior && chart.type && (chart.type.includes('bar') || chart.type.includes('line') || chart.type.includes('mix'))) { + if (chart.senior && chart.type && (chart.type.includes('bar') || chart.type.includes('line') || chart.type.includes('mix') || chart.type.includes('area'))) { senior = JSON.parse(chart.senior) if (senior.assistLine && senior.assistLine.length > 0) { const customStyle = JSON.parse(chart.customStyle) diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index a91efd5319..2eb95833b0 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -759,16 +759,16 @@
{{ $t('chart.senior_cfg') }} - + {{ $t('chart.analyse_cfg') }} @@ -1715,7 +1715,8 @@ export default { view.type === 'treemap' || view.type === 'liquid' || view.type === 'word-cloud' || - view.type === 'waterfall') { + view.type === 'waterfall' || + view.type.includes('group')) { if (view.yaxis.length > 1) { view.yaxis.splice(1, view.yaxis.length) }