...
地图配置:
修改散点地图的标记大小:
添加扩展属性代码:
{
...
代码块 | ||
---|---|---|
| ||
{
series: [{
type: 'scatter',
label: {
normal: {
show: true,
textStyle: {
color: '#000', //气泡内数值颜色
fontSize: 9,
},
formatter: '{b}'
}
}
}],
visualMap: [{
show: false
}, {
type: 'piecewise', //分段型。
splitNumber: 3,
inverse: true,
left: 'center',
top: 'bottom',
orient: "horizontal",
pieces: [{
min: 0,
max: 30,
color: 'green'
}, {
min: 31,
max: 40,
color: 'yellow'
}, {
min: 41,
max: 50,
color: 'blue'
}, {
min: 51,
max: 60,
color: 'red'
}]
}]
} |
实现效果:
Viewtracker |
---|