chartjs / Chart.js

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

In category axis, the last tick is not drawn if either maxTicksLimit or autoSkipPadding is specified. #11816

Open rahbari opened 1 week ago

rahbari commented 1 week ago

Expected behavior

In category axis, the last tick should always be drawn if includeBounds is true.

Current behavior

if either maxTicksLimit or autoSkipPadding is specified it's not drawn.

image

Reproducible sample

https://jsfiddle.net/nstp3v7c/3/

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v4.4.3

Browser name and version

No response

Link to your project

No response