' + '
' +
'xxxxxx4' + ':' + datasCssStyle + 0 + '
' + '
';
return lineName;
},
//showDelay:1000, //浮层显示的延迟,单位为 ms
//hideDelay:100, //浮层隐藏的延迟,单位为 ms
//enterable:true, //鼠标是否可进入提示框浮层中
//confine:false, //是否将 tooltip 框限制在图表的区域内
//transitionDuration:10, //提示框浮层的移动动画过渡时间,单位是 s,设置为 0 的时候会紧跟着鼠标移动
//虚化悬浮窗
extraCssText: 'pointer-events:none;width:20.58vw;height:10.81vw;background:#FFDEAD;color:#333333;line-height:1.9vw;font-size:1.04vw;border-radius:0;'
},
visualMap: {
type: 'continuous',
calculable: true,
show: false,
realtime: false,
inRange: {
color: '#F4A460',
borderColor: "white", //边框颜色
borderWidth: 10
}
},
geo: {
map: '浙江',
label: {
normal: {
show: true,
color: 'black'
},
emphasis: {
show: true,
color: 'black'
}
},
itemStyle: {
normal: {
areaColor: '#dedede',
borderColor: 'white',
borderWidth: 1
},
emphasis: { //地图选中(地图鼠标悬浮)
label: {
show: true
},
areaColor: '#FFD700'
}
},
"left": '32%',
"right": '1.5%',
"top": '3%',
"bottom": '7%'
},
series: [{
name: '省市数据',
mapType: '浙江', // 自定义扩展图表类型
type: 'scatter',
coordinateSystem: 'geo',
symbol: "circle",
data: convertData(data),
symbolSize: 15,
label: {
normal: {
show: false
},
emphasis: {
show: false
}
},
itemStyle: {
normal: {
borderColor: 'white',
borderWidth: 2,
},
emphasis: {
color: '#5ccbb1'
}
},
}]
}
myChart.setOption(zjMapOption, true);
})