You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the params of genData in the reproduction link (default value is 50) to bigger value (eg. 1000)
将复现链接中genData函数的参数(默认是50)替换为更大的值(例如1000)
Current Behavior
page stuck
页面卡顿
Expected Behavior
render takes shorter time
渲染更迅速
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
Seems like the function getPercentWithPrecision is called too many times, even though all the params is same (except idx). The result of seats can be reused.
@LeoB-O It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Bug] Pie chart with large data has performance issue.
Change the params of genData in the reproduction link (default value is 50) to bigger value (eg. 1000)
Replace the argument of the genData function in the recurrence link (50 by default) with a larger value (e.g. 1000)
Current Behavior
page stuck
Page stuttering
Expected Behavior
render takes shorter time
Renders faster
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
Seems like the function getPercentWithPrecision is called too many times, even though all the params is same (except idx). The result of seats can be reused.
It seems that the getPercentWithPrecision function has been called too many times, and the arguments passed each time are called the same (except for idx). The calculated seats results are reusable.
Pie charts are not expected to have large amount number of data. https://echarts.apache.org/examples/zh/editor.html?c=pie-legend is an example to show how legend paging works but from the perspect of data visualization, it's definitely a bad example of pie charts. This is because when there are a lot of data, the pie pieces are hard to tell which data is bigger and how much bigger they are to each other. It is better to use bar charts to show the difference.
For that reason, this performance issuse may not be prioritized.
Version
5.3.2
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=pie-legend
Steps to Reproduce
Change the params of genData in the reproduction link (default value is 50) to bigger value (eg. 1000)
将复现链接中genData函数的参数(默认是50)替换为更大的值(例如1000)
Current Behavior
page stuck
页面卡顿
Expected Behavior
render takes shorter time
渲染更迅速
Environment
Any additional comments?
Seems like the function getPercentWithPrecision is called too many times, even though all the params is same (except idx). The result of seats can be reused.
看起来getPercentWithPrecision函数被调用了太多次,每次调用传的参数都是一致的(除了idx)。计算出来的seats结果是可以被复用的。
The text was updated successfully, but these errors were encountered: