chartjs / chartjs/chartjs-plugin-zoom

Scale's StepSize is ignored when panning before any zoom.

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

Description

Hi,

I came across a strange bug : when panning, the x axis "StepSize" option is ignored if I didn't zoom once before.
See images below :

Step size of 60 in the axis with no panning/no zoom :
![Screenshot 2023-04-19 at 09-14-38 KeyApp](https://user-images.githubusercontent.com/16555663/232997432-919b48a1-e578-413f-9187-4a06975fcdcd.png)

With zoom + panning :
![Screenshot 2023-04-19 at 09-14-52 KeyApp](https://user-images.githubusercontent.com/16555663/232997437-6f489a10-68fe-4877-851b-10ed92180148.png)

With only panning :
![Screenshot 2023-04-19 at 09-15-20 KeyApp](https://user-images.githubusercontent.com/16555663/232997443-3c856475-8494-4ad0-b253-5627a078df93.png)

Cordially,

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.