Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ticks padding does not work as expected #11739

Open
roger21 opened this issue Apr 13, 2024 · 0 comments
Open

ticks padding does not work as expected #11739

roger21 opened this issue Apr 13, 2024 · 0 comments

Comments

@roger21
Copy link

roger21 commented Apr 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant