bernii / gauge.js

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

Decimal and Negative NumberSupport #16

Closed testament closed 11 years ago

testament commented 11 years ago

Hello, is there a way to show decimal values on the gauge?, also there is a way to use a negative range?

bernii commented 11 years ago

Of course you can! I've updated gauge so it works with negative values too.

Regarding showing decimal values you just need to provide custom text renderer as default one is designed for integer values. A sample jsfiddle with negative/decimal values working and decimal values renderer here http://jsfiddle.net/berni/smNjl

rajeevpn commented 11 years ago

Firstly, thanks so much for this wonderful piece of work! We've been playing with it and it's awesome :-) One question though: We are trying to set this up for a range of say -20 to 20. We would like for the shading that happens when the gauge is set to a negative value to be the sector between 0 and the negative value and not from the left extreme to the value. Basically the orange area - (terribly sorry for the very poor 'skitch'ing of the image) screenshot_12-jun-13_8_30_pm Any help appreciated! thanks

singhkumarhemant commented 5 years ago

this fiddle is not alive. plz suggest any other demo

Abhijeet-Tiwari commented 5 years ago

Please provide a new fiddle! Above one not alive!

SemihOzden commented 4 years ago

Could you please provide another demo thank you!

raphaeldas commented 3 years ago

For everyone who wants to see the jsfiddle example: https://web.archive.org/web/20161226121513/http://jsfiddle.net/berni/smNjl @SemihOzden @Abhijeet-Tiwari @singhkumarhemant