猿问

百度 echarts的问题。路过的朋友帮忙看下 谢谢。

demo:(不是打广告)

http://echarts.baidu.com/examples/editor.html?c=effectScatter-bmap

 

 

点实现不同的 的颜色呢?比如北京是红色 。武汉是绿色


https://img2.mukewang.com/5b92305d0001d7a405260510.jpg

Helenr
浏览 641回答 1
1回答

大话西游666

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.'             }         }     } }
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答