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

barColor range is based on value rather than percentage #12

Open
masoudhaghi opened this issue Sep 3, 2016 · 1 comment
Open

barColor range is based on value rather than percentage #12

masoudhaghi opened this issue Sep 3, 2016 · 1 comment
Labels

Comments

@masoudhaghi
Copy link

The barColor value can define the color range of the indicator, but the issue is the range is based on the value of the indicator and not the percentage of completion. When the range is based on value there are couple of issues as follow:

  1. When the indicator minValue is a negative number, you cannot assign a color for minimum value
  2. When the indicator value is higher than the maxValue or the maximum value in color range, the indicator color turns to transparent and does not show the indicator progress
  3. The color changes after the maxValue would not be calculated

Code Snippet from Documentation

$('#indicatorContainer').radialIndicator({
    barColor: {
        0: '#FF0000',
        33: '#FFFF00',
        66: '#0066FF',
        100: '#33CC33'
    },
    percentage: true
});
@s-yadav s-yadav added the bug label Sep 4, 2016
@s-yadav
Copy link
Owner

s-yadav commented Sep 4, 2016

This should be based on value instead of a percentage value, as when you are working with non-percentage values it becomes explicit to have the color range by values. Will figure out to fix the issues you reported.

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

No branches or pull requests

2 participants