-
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
Rounding problems #1498
Comments
@jibaku we probably need a better default template function. In your case you could change the template to |
I've forced value.toFixed() on both tooltips (where the floats have lots of dps) and also on the axis to avoid this issue. Although it means some graphs go from 0.0 to 1000.0 whilst others are 0.0 to 1.8 |
@artesea you could try running the ticks through a function that does something like the following.
That should show the best number of decimal places given the scale range |
Closing since #1567 was merged |
On some graph (using 2.0.0-dev), I've rounding problems, where I get 103.9999999999 instead of 104 etc.
The code for the rounding with 103 / 104 issue
The text was updated successfully, but these errors were encountered: