Acacia55 commented on issue #20621: URL: https://github.com/apache/echarts/issues/20621#issuecomment-2563231114
**Hello. I happened to see your issue and looked at the link you gave.** For your example, I think there are some configuration items that are not very reasonable (there is also a certain possibility that echarts was not designed with 0 in mind). First, we need to argue that it makes sense to set a minimum angle when the data in the pie chart has a value of 0.From my point of view, if there is an item in the pie chart with a data value of 0, then the minimum angle of the design is redundant, because there is really no need for the value of 0 to be displayed in the pie chart. Of course, this includes what I said about echart, which was not designed with the special value of 0 in mind. Secondly, for pie charts, the maximum angle is 360 degrees, and if the angle of the minimum value is set to a static value and this static value is too large, there will be problems. For example, if there are five items in a pie chart, it is mathematically wrong to set the minimum item to an angle of 100, because the minimum angle is 100. Then 100*5>360. Therefore, this minimum angle is best calculated dynamically, and if there is a value of 0 in the data, the minimum angle should be avoided. of course, the echarts official can further modify the rationality of this configuration item, so that you don't have to think about this problem when you use it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
