From 60205b25ed9d9a8c44a60df9bb3b0c9a94fc215e Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 27 Oct 2022 19:22:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9C=B0=E5=9B=BE):=20=E6=9C=AA=E5=BC=80?= =?UTF-8?q?=E5=90=AF=E6=A0=87=E7=AD=BE=E4=BD=86=E5=BC=80=E5=90=AF=E4=BA=86?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BA=8C=E8=80=85=E4=BC=9A=E8=A2=AB=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/chart.js | 4 +++- frontend/src/views/chart/chart/map/map.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/chart/chart/chart.js b/frontend/src/views/chart/chart/chart.js index c79e0ae12d..1a9a2cd68a 100644 --- a/frontend/src/views/chart/chart/chart.js +++ b/frontend/src/views/chart/chart/chart.js @@ -889,7 +889,9 @@ export const BASE_MAP = { }, emphasis: { - + label: { + show: false + } } } } diff --git a/frontend/src/views/chart/chart/map/map.js b/frontend/src/views/chart/chart/map/map.js index ead8013c8f..65ae8ff0d9 100644 --- a/frontend/src/views/chart/chart/map/map.js +++ b/frontend/src/views/chart/chart/map/map.js @@ -95,6 +95,7 @@ export function baseMapOption(chart_option, chart, themeStyle, curAreaCode) { chart_option.series[0].label.shadowBlur = 2 chart_option.series[0].label.showdowColor = customAttr.label.shadowColor } + chart_option.series[0].itemStyle.emphasis.label.show = customAttr.label.show } const valueArr = chart.data.series[0].data // visualMap