chartjs-plugin-zoom icon indicating copy to clipboard operation
chartjs-plugin-zoom copied to clipboard

Floating-point precision error at zoomed y-axis

Open FarawayFowl opened this issue 1 year ago • 0 comments

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

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

FarawayFowl avatar Sep 18 '24 06:09 FarawayFowl