ashish-chopra / angular-gauge

A reusable gauge directive for Angular 1.x apps and dashboards
https://ashish-chopra.github.io/angular-gauge/
MIT License
95 stars 36 forks source link

Update function does not work as it should #26

Closed raul1991 closed 7 years ago

raul1991 commented 7 years ago

Clicking the update button on the gh-pages branch (calls the update function of the gauge) does not really clears the previously drawn arc if you press it frequently and results into an inconsistent gauge.

Have a look at the following picture. image

ashish-chopra commented 7 years ago

Good, its a know issue, but was taken on low priority as it will not effect any real world app, unless it is realtime udpate. But yes please send a pull request with a fix, i you can.

ashish-chopra commented 7 years ago

The bug was a problem with animation's mathematical equation and rendering logic. In the latest release v1.4.0, i have re-written the underlying gauge logic, thereby eradicating this issue and many more. Checkout the release note and take an upgrade.

Fixed here: 940e4cd55f5527bda8daf72ac00137b626f0872e

Thanks!