Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The data line incorrectly reaching to the beyond data points when zooming #11982

Open
ngohuytrieu opened this issue Dec 30, 2024 · 0 comments
Open

Comments

@ngohuytrieu
Copy link

Expected behavior

Due to what happens, the data line starts from 30.0 - 11:30 should reaching to the left edge of the chart instead of going down to the bottom

Current behavior

Hi guys, I am using chart.js with chartjs-plugin-zoom and facing this issue
Here is the chart before zooming
image

Here is the chart after zooming
image

Notice how the data line starts from 30.0 - 11:30 reaching all the down to the bottom of the chart. It is incorrect drawing

Reproducible sample

https://codesandbox.io/p/sandbox/hzqlwp

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

^4.4.5

Browser name and version

Chrome:131

Link to your project

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant