antvis/G2
The issue has been closed
使用多个属性设置color,Legend无法正确显示颜色 #1818
spengjie posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
查看重现连接中的结果即可。Uncomment每个Case的注释,可以查看不同场景的结果。
What is expected?
Legend能够像Chart一样正确显示颜色。
What is actually happening?
Legend颜色显示与Chart不一致,且是错误的。
Environment | Info |
---|---|
g2 | 3.5.11 |
System | Windows 10 |
Browser | Chrome 79.0.3945.79 |
需要能够对满足特定条件的元素指定特殊颜色,其余的元素仍采用随机颜色。但目前的结果无论是否满足特定条件,Legend里显示的颜色都是错误的。即便是为不满足该特定条件的情况也指定了颜色。
<!-- generated by antv-issue-helper. DO NOT REMOVE -->