Closed qingming418 closed 4 years ago
试一下 itemStyle.normal.color
可以设置吗?可能是由于插件的兼容性问题
试过了,没有用。不过好像知道是哪儿的问题了,把 visualMap{...} 配置项去掉以后就可以了,问题出在visualMap。 但是具体是visualMap影响冲突,还是visualMap配置错了的原因?具体原因还没找到
哦哦,写了 visualMap 会覆盖掉 color 配置项
嗯嗯,是的。 seriesIndex: [1] 的设置会覆盖掉被选中series的颜色,所以就奇怪了
写了 seriesIndex: [1]
那么你的 scatter 系列就会用 visualMap 中计算出的颜色,没有问题,奇怪的点在于?
seriesIndex: [index] 只会覆盖 series中对应的index的系列,可能是跟映射的数据大小还有关系吧。只是这个时候series对应的系列就失去了设置color的效果了。
所以知道问题出在哪儿了哈,已经改了。要不去掉visualMap, 或则是设置visualMap. seriesIndex[index],index不要指定在需要设置color的series中。
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
使用了bmap作为图层后,在series里 type='scatter' 的 itemStyle.color 设置不生效
[期望结果]
[实际结果]
ECharts option [ECharts配置项]
用geo的时候标记点的颜色都能设置,换成bmap后边框颜色都可以生效,但是标记本身颜色失效,请问者要怎么处理呢?