ECharts地图颜色-选中颜色设置
来源:互联网 发布:8097端口 编辑:程序博客网 时间:2024/05/16 14:04
1.
echarts版本
areaColor:3.0
color:2.0
option = { tooltip: { trigger: 'item', formatter: '{b}' }, series: [ { name: '中国', type: 'map', mapType: 'china', selectedMode : 'multiple', itemStyle: { normal: {//未选中状态 borderWidth:2,//边框大小 borderColor:'lightgreen', areaColor: 'orange',//背景颜色 label: { show: true//显示名称 } }, emphasis: {// 也是选中样式 borderWidth:2, borderColor:'#fff', areaColor: 'red', label: { show: true, textStyle: { color: '#fff' } } } }, data:[ // {name:'广东', selected:true} { name:'广东', itemStyle: { normal: { color: 'red', label: { show: true, textStyle: { color: '#fff', fontSize: 15 } } }, emphasis: {// 也是选中样式 borderWidth:5, borderColor:'yellow', areaColor: '#cd5c5c', label: { show: true, textStyle: { color: 'blue' } } } }, } ] } ]};
1.效果图
参考网址:http://echarts.baidu.com/echarts2/doc/example/map.html
阅读全文
0 0
- ECharts地图颜色-选中颜色设置
- echarts 颜色设置
- ECharts 设置地图(map)值变化颜色(visualMap)
- 设置tabbar选中颜色
- 设置UICollectionViewCell选中颜色
- segment文字颜色,选中颜色,未选中颜色设置
- echarts图例颜色与地图底色
- 设置UITableViewCell选中的颜色
- 设置UITableViewCell选中的颜色
- UITableViewCell设置选中背景颜色
- ios 设置tabbar选中颜色
- 设置UITableViewCell选中的颜色
- CTreeCtrl设置保持选中颜色
- 为echarts的叠加柱状图设置颜色
- Echarts tooltip 自定义formatter设置字体颜色
- echarts 柱状图 ,颜色和显示设置
- echarts设置折线拐点中心的颜色
- ECharts 设置折线颜色和小圆点颜色
- rtmpdump的librtmp时间戳有问题,服务器会断开连接
- NXP-EVB-P6UL linux根文件系统定制手册《一》
- JS中一种实现sleep函数的方案
- react-native插件
- 微信浏览器、手机版浏览器、pc版浏览器网站的缓存怎么清理? 比较好的三点解决方案
- ECharts地图颜色-选中颜色设置
- Java并发之AQS详解
- 这小伙思想有点
- [多校补题]2017 Multi-University Training Contest 1 solutions BY 北京航空航天大学
- linux生成动态库 -fPIC报错
- hdu 2149 Public Sale
- 数据规范化
- 数据库操作语句大全(sql)
- android startActivityForResult收不到返回值