@ -1,4 +1,4 @@
<template>
<div :class="className" :style="{height:height,width:width}" />
@ -28,7 +28,7 @@
default: '500px'
},
chartData: {
type: Object
type: [Object,Array]
}
data() {
@ -81,6 +81,7 @@
tooltip: {
trigger: "item",
formatter: function(val) {
if(statusArr[val.data?.itemStyle?.status])
return "省份:" + val.name + "<br>当前进度: " + statusArr[val.data.itemStyle.status]; //
@ -98,7 +99,7 @@
series: [{
type: "map",
zoom:1.15,
map: "CHINA", //这里需要注意呀,
// 是否开启鼠标缩放和平移漫游 默认不开启
@ -134,5 +135,5 @@
</script>