Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

100% is drawn as an empty pie (==0%) #1

Open
introrse opened this issue Jul 11, 2015 · 0 comments
Open

100% is drawn as an empty pie (==0%) #1

introrse opened this issue Jul 11, 2015 · 0 comments

Comments

@introrse
Copy link

100% pies were being drawn as a tiny sliver at 12-o'clock and nothing else. (Same as 0% ones)

I had good luck inserting "if (angle >= 360) angle = 359.5;" before line 30 in SvgCircleProgress.js. That's just before the "endAngle = ..." line. This added statement prevents the code from trying to draw all the way to 360 degrees, which appeared to be causing the missing pies.

Thanks for this simple and useful package!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant