rozsazoltan commented on issue #3264:
URL: https://github.com/apache/echarts/issues/3264#issuecomment-2007899629

   https://stackoverflow.com/a/78188257/15167500
   
   When checking the numerical values upon data transmission, if it verifies 
and transmits `null` instead of `0` values, **the chart interprets `null` as 
`empty` and will not display the respective set**.
   
   ```js
   const values = [0, 0, 0, 0, 1];
   const names = ['A', 'B', 'C', 'D', 'E'];
   
   const data = values.map((v, i) => ({ name: names[i], value: v === 0 ? null : 
v }));
   ```
   
   _If all values are 0, then I believe it logically distributes the segments 
evenly in the circle, as they all represent equally zero value. Therefore, 
their ratio remains the same. I would rather introduce an option to interpret 0 
as null in the diagram or not. Until such an option exists, this can be done 
manually as well._


-- 
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]

Reply via email to