Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用多个属性设置color,Legend无法正确显示颜色 #1818

Closed
1 task
spengjie opened this issue Dec 20, 2019 · 0 comments
Closed
1 task

使用多个属性设置color,Legend无法正确显示颜色 #1818

spengjie opened this issue Dec 20, 2019 · 0 comments

Comments

@spengjie
Copy link

spengjie commented Dec 20, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

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里显示的颜色都是错误的。即便是为不满足该特定条件的情况也指定了颜色。

@simaQ simaQ added the G2 4.0 label Mar 6, 2020
@hustcc hustcc closed this as completed Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants