chartjs / chartjs/chartjs-plugin-zoom

Panning is removing ticks to the left

Open
#765 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
623
Forks
331
Avg merge
7h 5m
Merged PRs (30d)
7

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.