bernii/gauge.js — pull request #28 by andyhmltn (2013-03-19 15:02:43+00:00)
Title: Add a LimitMax option

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.