提交 2c267172 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

refactor: 地图上所有数据为0时 显示灰白色

上级 816178a4
...@@ -47,6 +47,9 @@ export function baseMapOption(chart_option, chart) { ...@@ -47,6 +47,9 @@ export function baseMapOption(chart_option, chart) {
chart_option.visualMap.min = 0 chart_option.visualMap.min = 0
chart_option.visualMap.max = 0 chart_option.visualMap.max = 0
} }
if (chart_option.visualMap.min === 0 && chart_option.visualMap.max === 0) {
chart_option.visualMap.max = 100
}
// color // color
if (customAttr.color && customAttr.color.colors) { if (customAttr.color && customAttr.color.colors) {
chart_option.visualMap.inRange.color = customAttr.color.colors chart_option.visualMap.inRange.color = customAttr.color.colors
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论