ECharts地图颜色-选中颜色设置
2017-08-15 15:29
477 查看
1.
echarts版本
areaColor:3.0
color:2.0
1.效果图
参考网址:http://echarts.baidu.com/echarts2/doc/example/map.html
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
相关文章推荐
- echarts设置图例颜色和地图底色的方法实例
- ECharts 设置地图(map)值变化颜色(visualMap)
- echarts 地图的背景色和各省颜色配置以及地图饼图联动
- android中ImageView设置选中与不选中颜色
- 设置 listview为单选模式平且设置选中的item的背景颜色为系统主题颜色
- android中设置ListView的选中的Item的背景颜色
- UITableViewCell的选中时的颜色设置
- UITableViewCell的选中时的颜色设置
- Flex中如何通过itemRollOverColor和itemSelectionColor样式给列图ColumnChart设置选中/未选颜色的例子
- iOS UITabBarItem 选中图的颜色,设置UIimage的渲染模式
- Android中EditText和AutoCompleteTextView设置文字选中颜色方法
- echarts如何给柱形图的每个柱子设置不同颜色
- 使用Echarts柱形图表动态加载数据且颜色的独立设置 bar
- UITableViewCell的选中时的颜色设置
- 转 Android RadioButton设置选中时文字和背景颜色同时改变
- visual studio 中将选中代码相同的代码的颜色设置,修改高亮颜色
- UITableViewCell的选中时的颜色设置
- Android RadioButton设置选中时文字和背景颜色同时改变
- android中设置ListView的选中的Item的背景颜色
- 设置UICollectionViewCell选中颜色