bar disappears when value>100
nebulous opened this issue · 3 comments
nebulous commented
Example in this fiddle: http://jsfiddle.net/7qq1keyL/
with scaleMax set to 1000, the display bar is properly scaled, but disappears with values greater than 100.
garfield69 commented
It's something to do with your bar color. For instance, if you change to bar-color="#FF0000"
then gauge2 shows your value.
[edit] found a bug in the color gradient logic. if pull request #8 is accepted then this should solve your issue.
nebulous commented
Thanks @garfield69 your patch to divide by the scale rather than 100 worked nicely. I'm sure @cdjackson will apply it when he gets the time.
cdjackson commented
Thanks guys - sorry this took a while, I'm super busy at the moment.