chartjs / chartjs/Chart.js

Floating-point precision error at zoomed y-axis

Open
#11,954 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

Like marked in the screenshot below there sometimes occur floating point precision errors on the outer ticks of the y-axis.

chartjs-plugin-zoom in version 2.0.1
chartjs in version 4.4.4

Using the chartjs precision property on the ticks, does not take effect to the outer ticks of the zoomed axis.

![Screenshot 2024-09-13 124210](https://github.com/user-attachments/assets/e8419939-1b36-401f-9d96-ac8a98aad192)

The setup of the above chart can be found here: https://jsfiddle.net/f1we3qt9/1/
Unfortunately the shown bug is hard to reproduce.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.