Skip to content

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

Open
@ngohuytrieu

Description

@ngohuytrieu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions