-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
feat(label): sector label positions for polar bars and rotate for pies #15182
Conversation
Thanks for your contribution! The pull request is marked to be Document changes are required in this PR. Please also make a PR to apache/echarts-doc for document changes and update the issue id in the PR description. When the doc PR is merged, the maintainers will remove the This PR depends on ZRender changes. Please update the ZRender dependency to the latest nightly version including this change, which takes place everyday at 8:00 UTC (16:00 Beijing Time). |
Congratulations! Your PR has been merged. Thanks for your contribution! 👍 |
Brief Information
This pull request is in the type of:
What does this PR do?
This PR supports polar bar label positions according to the sectors, and supports rotation for pie labels.
Fixed issues
Details
Before: What was the problem?
Label positions can only calculated by the bounding box of the sectors but not according to sector shapes.
After: How is it fixed in this PR?
Polar bars
Along with the old values of label positions (like
'inside'
), this PR provides new position values:Pie Series
'radial'
and'tangential'
values are supported forseries[pie].label.rorate
.Misc
Related test cases or examples to use the new APIs
Others
Merging options
Other information