-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
beginAtZero ignored in line-chart #1579
Comments
@stephanarts |
@etimberg I see what you mean, I was aware of the config-change and it does work. - sometimes. If I assign the values hard-coded as strings in my js file, it works. If I retrieve them as a JSON object from an AJAX call it doesn't work. Let me check where the difference is coming from. |
I am clueless as to why it didn't work earlier... I must have done something terribly wrong. @etimberg: thank you for confirming the location of the beginAtZero option in v2.0 :-) |
@stephanarts glad its fixed. Let me know if you see it again and I'll give it a stress test. |
@etimberg I managed to reproduce it here: http://jsbin.com/dusesimiqa |
I see the issue. The relevant lines are: https://github.com/nnnick/Chart.js/blob/v2.0-dev/src/scales/scale.linear.js#L103-L106 |
@stephanarts a fix is in #1581 |
Confirmed. |
I want to use Chart.js to draw a time-line graph of values that can not have a negative value. - Think about CPU-load (floating-point value between 0.0 and a lot), network-throughput (bytes/s).
The timescale graph in Chart.js 2.0 appears to be a good fit, but it looks weird if the base-line is drawn at the center of the graph. (which happens if you draw a lot of values between 0.08 and 0.2).
I get the impression that beginAtZero is ignored in the line-chart.
The text was updated successfully, but these errors were encountered: