demo:(不是打广告)http://echarts.baidu.com/examples/editor.html?c=effectScatter-bmap 点实现不同的 的颜色呢?比如北京是红色 。武汉是绿色
1 回答
大话西游666
TA贡献1817条经验 获得超14个赞
option = {
series: {
type: 'scatter',
itemStyle: { // 普通样式。 normal: { // 点的颜色。
color: 'red'
}, // 高亮样式。 emphasis: { // 高亮时点的颜色。
color: 'blue'
}
},
label: { // 普通样式。 normal: {
show: true, // 标签的文字。
formatter: 'This is a normal label.'
}, // 高亮样式。 emphasis: {
show: true, // 高亮时标签的文字。
formatter: 'This is a emphasis label.'
}
}
}
}添加回答
举报
0/150
提交
取消
