bernii / gauge.js

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

iPhone and iOS #12

Closed andyscott12 closed 11 years ago

andyscott12 commented 11 years ago

Hi there,

Just wondering whether this works on the iphone or the iOS ?

Would be awesome if you were able to change the colors based on the value selected - so it means you could have

0-25% - red 25%-50% - green 50%-75% - purple etc

?

bernii commented 11 years ago
  1. Tested on iPhone simulators iOS 4.3: WORKS (some problems with automatic creator though), iOS 5: WORKS, iOS 6: WORKS
  2. Added option of defining custom color renderer! Check out sample code that implements your idea: http://jsfiddle.net/berni/KM7PW/