lugolabs / circles

A lightweight JavaScript library that generates circular graphs in SVG.
https://www.lugolabs.com/circles
Other
1.05k stars 247 forks source link

Add updatePercent(percent) method. #11

Closed adrien-gueret closed 10 years ago

adrien-gueret commented 10 years ago

If we want to update the percent value of the circle, we need to create a whole new instance and animation of the circle restarts from 0. This method allows us to update this value at any moment. It does not take into account the "duration" option, it's an improvement we could make later if needed :)

(could be a fix for issue #9 )

logankoester commented 10 years ago

Haven't tried your patch yet but I'm definitely excited about this getting added. Much needed feature :thumbsup: