bernii / gauge.js

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

Gradient in Guage chart #96

Open umesh-naik opened 8 years ago

umesh-naik commented 8 years ago

Hi, This is not a issue but might be considered as enhancement. Here is the screenshot of guage chart that I wanted to achieve using gauge.js.

radiant-guage

Since, I can only start and stop the colors using colorStart and colorStop which only specifies two colors on the guage, what if I want to apply gradient colors using addColorStop(); method? I have just added one more option and made it work for the attached image. But, can it be fixed from plugin itself?, allowing users to use 0.0 - 1.0 ranges on the above mentioned function? Will be more useful.

Thanks.