gauge.js
gauge.js copied to clipboard
Using percentColors "pops" the color after animation
adding percentColors : [[0.00, "#00b500" ], [0.65, "#e6e600"], [.70, "#ca3838"]],
When the gauge refreshes and the needle animation reaches the set value, the color "pops" into the gauge rather than gradually changing to the appropriate color. I set gauge.set(70) and gauge.maxValue = 100 and gauge.setMinValue(0). As it reaches 70 it flashes from yellow to red.