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

Panning is removing ticks to the left

Open rsd opened this issue 2 years ago • 0 comments

When panning a chart, some ticks to the left (and the x grids) are gone. Dragging back and forth a chart, it will redraw the x ticks/grids when they are in about 40% of the chart.

This is also happening in the samples here: https://www.chartjs.org/chartjs-plugin-zoom/latest/samples/pan-region.html and here: https://www.chartjs.org/chartjs-plugin-zoom/latest/samples/basic.html

To reproduce just click and drag (pan) these charts and observe the x ticks to the left.

E.g. Before pan: image

After pan: image

Tested on Chrome 113.0.5672.127.

If this is the expected behavior, please point me on how to avoid this.

-rsd

rsd avatar May 27 '23 01:05 rsd