andreaferretti / paths-js

Generate SVG paths for geometric shapes :bar_chart:
http://andreaferretti.github.io/paths-js-react-demo/
Apache License 2.0
1.72k stars 84 forks source link

Pie-chart with only one slice #47

Closed msageryd closed 5 years ago

msageryd commented 7 years ago

path-js works great, most of the time, for me. But when I end up with data for only one slice (i.e. 100% of the data), the slice is not drawn.

If I set a stroke color I can see that only the line from center to perimeter (radius) is drawn. Is there any properties I have forgot to set? Otherwise it seems like some kind of bug where a full circle (360 degrees) become a null circle (0 degrees).

andreaferretti commented 5 years ago

Sorry it took a while :-)

msageryd commented 5 years ago

Two years is nothing =) Great, now I can remove my workaround!