chartjs / Chart.js

Simple HTML5 Charts using the <canvas> tag
https://www.chartjs.org/
MIT License
63.9k stars 11.88k forks source link

Line chart rendering goes haywire #11775

Open MartinJericho opened 1 month ago

MartinJericho commented 1 month ago

Expected behavior

The chart should display correctly like this: correct

Current behavior

The chart displays incorrectly like this: bug

The problem does not occur if the last observation is removed, or if the canvas is wider, or if reverting back to chart.js v3.6.0.

Reproducible sample

https://codepen.io/webventure-au/pen/GRaJveM

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

4.4.2

Browser name and version

chrome or firefox

Link to your project

No response