chartjs / Chart.js

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

Lines are not displayed when changing the max and min values of the x-axis using the offset option. #11697

Open nicke1jp opened 4 months ago

nicke1jp commented 4 months ago

Expected behavior

Changing max and min will cause the line to appear completely on the offset interval.

Current behavior

As shown in the following image, the line is missing from the offset, even though the point exists next to 2019.01.

image image

Reproducible sample

https://codepen.io/nicke1jp/pen/WNWNmPr

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v4.0.1

Browser name and version

No response

Link to your project

No response