chartjs / chartjs/Chart.js

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

Open
#11,982 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### 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](https://www.chartjs.org/chartjs-plugin-zoom/latest/) 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_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.