Open samwato opened 3 months ago
It's the first time we see this issue.
Seems to come from the computation of the arc, because the path value started with M0,-77.5A
for the invisible arc. But starts with M0.001,-77.5A
for others.
I still need to investigate if this rounding issue come from the animation interpolation not finishing on the correct value, or if it's the d3.arc() that has an issue with this extreme edge case
It's not the animation, but D3JS that causes the disappearing arc. For an unknown reason modifying the radius impacts this.
Not sure if the solution is on D3 side, or if it's better to have a custom behavior that either ignore too small values or over represent them with that they stay visible for humans
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/epic-bush-4jk7jf
This issue may have been raised before, however, the example shows a pie chart hidden and 2 pie charts that are visible.
Current behavior
The pie chart is hidden
Expected behavior
The pie chart is visible
Context
My use case is the data values are dynamic and have ran into this issue by accident
Your environment
No response
Search keywords: piechart