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

Default mid-point bar wrong when using numType: absolute #17

Open
payamazadi opened this issue Dec 21, 2015 · 1 comment
Open

Default mid-point bar wrong when using numType: absolute #17

payamazadi opened this issue Dec 21, 2015 · 1 comment

Comments

@payamazadi
Copy link

Here's an example of the mid bar not working correctly when numMax is 50 or below (actually it doesn't work for anything below 100 it seems). Not only is the bar at the wrong place, but when <50, the bar is off the chart. My use case: I need bars to represent heights of people in a competition. I effectively want the bar to range from 36 inches to 48 inches.

var opt = { numType: 'absolute', numMin:0, numMax:50, numMinLabel: true, numMaxLabel:true };
$('#bar1').barIndicator(opt);

49

fail1


40


var opt = { numType: 'absolute', numMin:0, numMax:48, numMinLabel: true, numMaxLabel:true };
$('#bar1').barIndicator(opt);
fail2

@payamazadi
Copy link
Author

When numMax - numMin < 50 the median bar is past the end.

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

1 participant