Novsochetra/react-native-circular-chart

Chart disappears at the end of slide animation

Opened this issue · 1 comments

When using slide animation, the chart disappears at the end of the animation, probably because when rendering the Svg with d.to=0 and d.from=360, the Svg takes the shortest path, which means no angle at all. I worked around it by adding a condition that sets d.from to 359 if (d.from == 0 && d.to == 360)
This is probably not the most elegant way of solving it, that's why I address this as an issue and not a PR.

Thanks for this awesome package anyways!

saved my day!