chartjs / chartjs-plugin-zoom

Zoom and pan plugin for Chart.js
MIT License
598 stars 327 forks source link

Graph grid and axes jittering when panning on one axis #802

Closed nkalupahana closed 2 weeks ago

nkalupahana commented 11 months ago

The jittering is constant, and gets even worse when the axis label changes size. This is bad enough that I don't feel great going to production with it jittering and jumping around so badly. There's a video attached, and I can provide a reproduction if this is not a common issue.

https://github.com/chartjs/chartjs-plugin-zoom/assets/7347290/928cdb0f-2db1-4886-8060-a909725057f7

kurkle commented 2 weeks ago

Padding probably helps: https://www.chartjs.org/docs/latest/general/padding.html#top-left-bottom-right-object