|
@@ -151,7 +151,7 @@ const options = computed(() => {
|
|
|
|
|
|
visualMap: {
|
|
|
min: 0,
|
|
|
- max: Math.max(props.data.map((item) => item.sopNum || 0)),
|
|
|
+ max: Math.max((props.data || []).map((item) => item.sopNum || 0)) || 10,
|
|
|
left: 'left',
|
|
|
top: 'bottom',
|
|
|
text: ['高', '低'],
|
|
@@ -174,7 +174,7 @@ const options = computed(() => {
|
|
|
normal: {
|
|
|
show: true,
|
|
|
// color: 'rgb(249, 249, 249)', //省份标签字体颜色
|
|
|
- color: '#bbb', //省份标签字体颜色
|
|
|
+ color: '#888', //省份标签字体颜色
|
|
|
fontSize: '12',
|
|
|
formatter: (p) => {
|
|
|
let target = props.data.find((item) => item.province === p.name);
|