0
0
0348raven2016-06-16 12:54:15
JavaScript
0348raven, 2016-06-16 12:54:15

How to force display value 0 in pie chart on canvas?

I'm using IE8+ Radial Progress Bar , I can't fix it so that when value="0"
it outputs exactly 0, not 100. I understand that with "null" it is necessary to do a check when rendering, but I can't figure out where.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fetur, 2016-06-24
@Fetur

I haven’t seen such a trash for a long time, incorrect argument passing, recursion, and the funny thing is that the library itself has a lot of minor flaws. It feels like in front of me is a fierce person who has watched "Mastering JS in an Hour". No offense :)
By the way, your function didn't know how to correctly calculate when you need to complete the work, also don't forget about exiting the function with the return method;
By the way, did you know that people usually pay money for such solutions to such issues?
You can close the question, here is the solution, today I am kind :^)
https://plnkr.co/edit/1HraKrIV44aUIPkSbILc?p=preview

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question