Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

ticks padding does not work as expected

Open roger21 opened this issue 10 months ago • 1 comments

Expected behavior

the doc for options.scales[scaleId].ticks.padding says : "number 3 Sets the offset of the tick labels from the axis"

Current behavior

but instead the padding is applied all around the label making the graph area unnecessary smaller

and we can't use the padding object here

plus it is not "from the axis" but from the "tick drawing" (unclear)

Reproducible sample

https://codepen.io/roger21-the-bold/pen/JjVBWyp

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

firefox 115.9.1esr

Link to your project

No response

roger21 avatar Apr 13 '24 22:04 roger21