-
-
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
Can I have only integer values in Y - axis when actual values may be non-integer? #1047
Comments
Yes, you can use the yaxis: [
{
labels: {
formatter: function(val) {
return val.toFixed(0);
}
}
}
] |
In here you can get integer values to the y axis but, if the bar graph actual value is also rounded up or down to nearest integer. When you hover over the bar you see 36 if the actual value is 35.7, and 42 when actual value is 42,3. |
@DinooliUduwarage Did you solve this somehow? I would like to have the same effect. |
Thank you, this works. |
This is not a great solution. Any manipulation of |
Agreed - I would like to be able to have points on the chart be 2dps for accuracy but have the labels on the y-axis be rounded for readability. The label formatter seems to format both at the same time which is not good.
Fixes it for me |
I want to get rid of the decimal places in the right y axis, yet my column values can be non-integer
@junedchhipa
The text was updated successfully, but these errors were encountered: