-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Force yaxis to start at 0 #302
Comments
Have you tried |
yaxis: {
labels: {
formatter: function(val, index) {
return Math.round(val);
}
}
} |
I mean round like |
I just realized this is not possible currently. Thanks for pointing it out. |
The new property will be yaxis: {
forceNiceScale: true
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
I'm making a chart where the data becomes hard to understand when it doesn't start at 0.
Describe the solution you'd like
Add an option (like
yaxis.startAtZero: true|false
) to force the chart to start drawing at 0.Describe alternatives you've considered
none
Additional context
Seems like a pretty simple fix, in the part where it decides to not start at 0, do it only when the option is set to false.
The text was updated successfully, but these errors were encountered: