From 996185995aaf2367193301f7e909c53dfcbbdd82 Mon Sep 17 00:00:00 2001 From: junjie Date: Tue, 7 Sep 2021 14:08:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E8=A7=86=E5=9B=BE)=EF=BC=9A=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E7=9F=A9=E5=BD=A2=E6=A0=91=E5=9B=BE=E5=9B=BE=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/common/common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/views/chart/chart/common/common.js b/frontend/src/views/chart/chart/common/common.js index cdf096e85d..493926d33d 100644 --- a/frontend/src/views/chart/chart/common/common.js +++ b/frontend/src/views/chart/chart/common/common.js @@ -51,6 +51,9 @@ export function componentStyle(chart_option, chart) { chart_option.legend.orient = customStyle.legend.orient chart_option.legend.icon = customStyle.legend.icon chart_option.legend.textStyle = customStyle.legend.textStyle + if (chart.type === 'treemap') { + chart_option.legend.show = false + } } if (customStyle.xAxis && (chart.type.includes('bar') || chart.type.includes('line') || chart.type.includes('scatter') || chart.type === 'chart-mix')) { chart_option.xAxis.show = customStyle.xAxis.show