-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
Description
Expected behavior
If the max
limit is set for the x axis of a line chart, and the tension is set, or cubicInterpolationMode
is set to monotone
, then there's a weird curve path at the end of the graph.
If you have two lines on the chart, and you deselect one of them and then reselect it, the lines are being redrawn, and the curve path straightens out to what it should like from the beginning.
This is how it then looks and how I expected it to look without interaction:
Current behavior
And this is how it looks like initially:
Reproducible sample
https://codepen.io/rgwebcode/pen/mdzpzrQ
Optional extra steps/info to reproduce
Happens both in standalone Chart.js and react-chartjs-2.
Possible solution
No response
Context
No response
chart.js version
v4.3.0
Browser name and version
Chrome 112.0.5615.138 & Firefox
Link to your project
No response