bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

Add a LimitMax option #28

Closed andyhmltn closed 11 years ago

andyhmltn commented 11 years ago

I'm using this for a dashboard sales screen. In this particular use case, it records how many new registrations that haven't been dealt with before. I set the max value as 20 so the gauge goes red when we start approaching that number.

If the number goes over the max (20) the dial starts being buggy and going backwards. I'm unsure of the need for this, but again there could be one so I left it be. However I added a 'limitMax' option that will basically stop animating the gauge with the set function if the value provided is more than the max value.

PavelPolyakov commented 11 years ago

I have the same issue, I think.

Sometimes the gauge pointer goes more further than the max value.