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

[Bug] make pie label color match slice color #18610

Closed
crazyxhz opened this issue May 11, 2023 · 3 comments
Closed

[Bug] make pie label color match slice color #18610

crazyxhz opened this issue May 11, 2023 · 3 comments
Labels
doc Document or Website related issues. en This issue is in English not-a-bug support

Comments

@crazyxhz
Copy link

Version

5.5.2

Link to Minimal Reproduction

https://codepen.io/crazyxhz/pen/XWxqVgy

Steps to Reproduce

https://codepen.io/crazyxhz/pen/XWxqVgy

Current Behavior

in not hovered, label color is using the first pie's color

Expected Behavior

label color using corresponding pie's color

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@crazyxhz crazyxhz added the bug label May 11, 2023
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels May 11, 2023
@plainheart
Copy link
Member

Remove the color callback function in the rich option and add color: 'inherit' into the label option.

@plainheart plainheart added support not-a-bug waiting-for: author and removed bug pending We are not sure about whether this is a bug/new feature. labels May 11, 2023
@crazyxhz
Copy link
Author

Remove the color callback function in the rich option and add color: 'inherit' into the label option.

THANKS it worked. May be we can put this in the docs: https://echarts.apache.org/zh/option.html#series-pie.label.color

@plainheart
Copy link
Member

@crazyxhz Thanks for your tip. I've added it to the documentation and updated the website. apache/echarts-doc@d9372b1

@plainheart plainheart added the doc Document or Website related issues. label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Document or Website related issues. en This issue is in English not-a-bug support
Projects
None yet
Development

No branches or pull requests

2 participants