Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thresholds with decimal values #66

Open
nguyenhoangnamkg opened this issue May 10, 2019 · 1 comment
Open

Thresholds with decimal values #66

nguyenhoangnamkg opened this issue May 10, 2019 · 1 comment

Comments

@nguyenhoangnamkg
Copy link

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
Copy link

rolfst commented May 22, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants