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

Is it possible to not redraw from 0? #21

Closed rohan-buechner closed 7 years ago

rohan-buechner commented 7 years ago

When updating a chart value, is it possible to not have the chart redraw from 0 each time?

ashish-chopra commented 7 years ago

I had opened the similar issue #3. Can you send a pull request for this issue?

Anyways i think, some change is needed in mathematical equation that calculates the coverage on the arc as well for this issue.

ssbrewco commented 7 years ago

First off, nice work on the gauge - hard to find one like yours that plays well with AngularJS.

Anyhow, would like to +1 the request to address the "redraw from 0" issue mentioned above. Would be much easier to redraw (higher or lower) starting from the current value.

Thanks!

ashish-chopra commented 7 years ago

Thanks @ssbrewco for your kind words. Hope if someone can send a pull request to do the required changes.

camiteca commented 7 years ago

I have created #40 with the feature. It updates from the previous value if there's any, or the min value if it hasn't been updated yet, instead of always updating from the min value.

ashish-chopra commented 7 years ago

Thanks @karlmtc , its amazing. I will test your pull request soon.

Thanks Ashish

ssbrewco commented 7 years ago

Really looking forward to this one!

ashish-chopra commented 7 years ago

40 merged in the master. I will release it shortly. Thanks!