-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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] Pie chart: minShowLabelAngle and label.position break down together #17712
Comments
Thanks for your feedback! This is an unexpected error brought by #17412. The |
This issue is labeled with |
@sirAbramstone I'm sorry about this bug. If it's serious and is a blocker for your project, you can do a patch for current package or use today's nightly version later. npm i echarts@npm:[email protected] |
@plainheart thank you, I'll really appreciate this. |
@plainheart thks! |
Version
5.4.0
Link to Minimal Reproduction
https://codepen.io/Pikcher/pen/xxjYqMQ
Steps to Reproduce
echarts.init(container); instance.setOption(options);
.Current Behavior
Function "pieLabelLayout" that's placed in lib/chart/pie/labelLayout.js bring about code execution failure with error:
TypeError: Cannot read properties of undefined (reading 'states')
. It happens when chart has options pie-series.minShowLabelAngle and pie-series.label.position === 'inside' or pie-series.label.position === 'inner' together. You can see labels that should be hidden are displayed in top left corner of the chart.Expected Behavior
Labels should not be displayed according to the minShowLabelAngle setting.
Environment
Any additional comments?
It seems like bug appears in version 5.4.0., I did't watch that behavior in previous minor version.
The text was updated successfully, but these errors were encountered: