ashish-chopra / angular-gauge

A reusable gauge directive for Angular 1.x apps and dashboards
https://ashish-chopra.github.io/angular-gauge/
MIT License
95 stars 36 forks source link

Thresholds with decimal values #66

Open nguyenhoangnamkg opened 5 years ago

nguyenhoangnamkg commented 5 years ago

Your library is very nice. Thank you for supporting the community. I have an issue is that when I change the threshold value to decimal, it does not work as expected.

vm.thresholds = { '0': {color: 'green'}, '8': {color: "orange"}, '20.05': {color: 'yellow'}, '30.05': {color: 'coral'}, '80': {color: 'red'} }

rolfst commented 5 years ago

I have the same issue however I noticed it only works for decimals that are half values like: 90.5, 56.5 nor does it change when over 100