From 2c267172c5cba27480612d83b399f91ef18a4d67 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 31 Aug 2021 12:48:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=9C=B0=E5=9B=BE=E4=B8=8A?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=95=B0=E6=8D=AE=E4=B8=BA0=E6=97=B6=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=81=B0=E7=99=BD=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/chart/chart/map/map.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/views/chart/chart/map/map.js b/frontend/src/views/chart/chart/map/map.js index 6c003a0fd2..de611a0051 100644 --- a/frontend/src/views/chart/chart/map/map.js +++ b/frontend/src/views/chart/chart/map/map.js @@ -47,6 +47,9 @@ export function baseMapOption(chart_option, chart) { chart_option.visualMap.min = 0 chart_option.visualMap.max = 0 } + if (chart_option.visualMap.min === 0 && chart_option.visualMap.max === 0) { + chart_option.visualMap.max = 100 + } // color if (customAttr.color && customAttr.color.colors) { chart_option.visualMap.inRange.color = customAttr.color.colors