chartjs / chartjs-plugin-zoom

Zoom and pan plugin for Chart.js
MIT License
579 stars 322 forks source link

After zooming in too much, straight line shifts upwards #797

Open ale-coe opened 7 months ago

ale-coe commented 7 months ago

Current behavior

In an unzoomed state the blue dot is located directly on the line (the line itself is an annotation and the blue dot is part of a scatter chart). img_1 If I zoom in too much, the line shifts upwards and the dot is not located on the line anymore. img_2

Swapping the annotation with a line chart or a scatter chart does not fix the issue.

Expected behavior

The zoomlevel does not affect how the line is displayed.

Reproducible sample

See this codepen.

fehmisener commented 2 months ago

Hey,

I'm having the same problem, did you find a solution?