-
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
floating point on y axis #11751
Comments
You can use the |
Hey |
Thank You |
The .png was rendered using chart.js 2.9.4, its displays floating point numbers correctly ..4.4.2 does not. It inserts a comma.. This is not usable... |
Chart 4.4.2 does not render floating point numbers properly . |
As per my first comment, this is not a bug. We format the ticks using the locale API when you don't provide a locale to chart.js it will use the default of your system. Providing a US locale will force the ticks to render with a dot instead of a comma: https://jsfiddle.net/xp5uLdac/1/ Since this is not a bug I am closing this issue |
Expected behavior
I'm trying to chart Barometric pressure with chart.js version 4.4.2
data: [990.25,1013.25,1013.25,1013.25,1013.25,1040.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1030.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25,1000.25,1013.25,1013.25,1013.25,1013.25,1013.25,1013.25],
Current behavior
with chart.js version 4.4.2 the y axis displays with commas, like 1,024, 1,025, etc...this is completely unusable..
with older version of chart.js version 2.9.4...floating point numbers are displayed properly.. 1024.1, 1025.9, etc
Reproducible sample
https://cdn.jsdelivr.net/npm/chart.js@4.4.2/dist/chart.umd.min.js
Optional extra steps/info to reproduce
Anyway, Love chart.js 2.9.4 ...trying up update to 4.4.2
Possible solution
No response
Context
No response
chart.js version
4.4.2
Browser name and version
latest mozilla firefox on ubuntu linux
Link to your project
http://netmanindy.com:7608/
The text was updated successfully, but these errors were encountered: