-
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
Axis won't use decimal point values for scaling #5392
Labels
Milestone
Comments
@serratedserenade its likely the format function that is removing the decimal place. You could try a custom format function that uses a fixed number of decimal places and see if that changes things |
I tried to use that and it didn't really solve the issue, the callback property passes 3 properties, all of which have already been calculated: Code:
Result:
|
+1 |
This is resolved by #4841. Set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey guys, I want to make the y axis ticks be in the step size of the max value (e.g. if the max value is 10, the ticks are 0, 2.5, 5, 7.5, 10). However it's rounding up and I'm not sure how to prevent that. Option used:
Expected Behavior
Steps to have decimal values: [0, 2.5, 5, 7.5, 10]
Current Behavior
Steps get rounded up to : [0, 3, 5, 8, 10].
Steps to Reproduce (for bugs)
scales: { yAxes: [{ ticks: { min: 0, max: 10, stepSize: 2.5, display: true, beginAtZero: true } }] }
Context
I want to be able to set the step size to any value I want and be able to scale properly. Currently when it automatically rounds up, it looks off and it's not the result I want anyway.
Environment
The text was updated successfully, but these errors were encountered: