Donut chart issues with empty segments #357
Labels
bug
Something isn't working
good first issue
Good for newcomers
open for contribution
Issue is available for contribution
rsc:Donut
Provide a general summary of the issue here
When rendering segment labels on a donut chart, there are several issues if all segments have a value of
0
.🤔 Expected Behavior?
NaN
s displayed😯 Current Behavior
Several rendering problems with the chart:
💁 Possible Solution
Falling back to a "No data found" label would be fine:
Alternatively, an empty donut chart would work nicely:
🔦 Context
No response
🖥️ Steps to Reproduce
Visit the CodeSandbox here
Ensure that all data points have a value of 0, and show percentage and value labels on a donut chart:
Version
1.11.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
MacOS
🧢 Your Company/Team
AJO B2B
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: