chartjs / Chart.js

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

Clip option on scale doesn't do anything #11741

Open sbourouis opened 2 months ago

sbourouis commented 2 months ago

Expected behavior

Setting clip: false on the scales.x options should not clip the points that are on the x-axis limit. Setting clip: false on scales.x and scales.y should act like setting clip: false on the options root level and not clip the data that appears out of the min and max limits

image

Current behavior

image

Setting clip: false on both axes does nothing.

Reproducible sample

https://codepen.io/sbourouis/pen/dyLqMay

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 Version 123.0.6312.107 (Official Build) (arm64)

Link to your project

No response