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

Comments

Projects
None yet
2 participants
@masoudhaghi

masoudhaghi commented Sep 3, 2016

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

This comment has been minimized.

Show comment
Hide comment
@s-yadav

s-yadav Sep 4, 2016

Owner

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.

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