You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No parasitic decimal places when ticks value used in callback
Current behavior
I use the ticks callback to replace decimal separator. Sometimes the value (val) of this callback includes additional parasite decimal places (log here):
but when callback is not used there is a standard number of decimal places (numbers like 12.1, 12.4 ...)
Expected behavior
No parasitic decimal places when ticks value used in callback
Current behavior
I use the ticks callback to replace decimal separator. Sometimes the value (
val
) of this callback includes additional parasite decimal places (log here):but when callback is not used there is a standard number of decimal places (numbers like 12.1, 12.4 ...)
the code for ticks setup is here
Reproducible sample
https://codesandbox.io/s/react-chartjs-2-chart-js-issue-template-forked-v99pdg?file=/src/App.jsx
Optional extra steps/info to reproduce
I don't think I am able to reproduce the issue in sandbox as this happens only sometimes. Link can be added later on, when project is online.
Possible solution
No response
Context
No response
chart.js version
3.6.2
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: