You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/06/14 11:27:18 UTC
[GitHub] thinkal01 opened a new issue #8526: map,visualMap存在时,如何单独给某个省份设置颜色?
thinkal01 opened a new issue #8526: map,visualMap存在时,如何单独给某个省份设置颜色?
URL: https://github.com/apache/incubator-echarts/issues/8526
<!--
为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
-->
### One-line summary [问题简述]
给data单独设置的颜色会被visualMap颜色所覆盖,希望当value为0时,能单独设置颜色#eee,而不使用visualMap的颜色lightskyblue,代码如下:
**visualMap颜色设置**
visualMap: {// 颜色的设置 dataRange
left: 'left',
bottom: '10%',
min: 0,
max: 500,
calculable: true,// 颜色呈条状
text: ['高', '低'],// 文本,默认为数值文本
inRange: {
color: ['lightskyblue', 'yellow', 'orangered']
}
},
**给data数据单独设置颜色**
data: [
{
name: '北京', value: 0,
itemStyle: {
areaColor: '#eee'
}
},
{
name: '天津', value: 0,
itemStyle: {
areaColor: '#eee'
}
}
]
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org