Closed sirAbramstone closed 2 years ago
Thanks for your feedback! This is an unexpected error brought by #17412. The labelLine
may be undefined.
This issue is labeled with priority: high
, which means it's a frequently asked problem and we will fix it ASAP.
@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:echarts-nightly@5.4.1-dev.20220929
@plainheart thank you, I'll really appreciate this.
@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:echarts-nightly@5.4.1-dev.20220929
@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.