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

Labels on x axis should be horizontally positioned when there is available space #10856

Closed
ElenaLj opened this issue Nov 6, 2022 · 0 comments · Fixed by #11069
Closed

Labels on x axis should be horizontally positioned when there is available space #10856

ElenaLj opened this issue Nov 6, 2022 · 0 comments · Fixed by #11069

Comments

@ElenaLj
Copy link

ElenaLj commented Nov 6, 2022

Expected behavior

Labels on x axis should position themselves horizontally when there is available space without adding maxRotation: 0 or minRotation: 0 (which would make the labels not responsive when resizing)

Current behavior

The labels are tilted even tough there is space for them to be positioned horizontally
Screenshot 2022-11-06 at 13 40 19

Reproducible sample

https://stackblitz.com/edit/js-ddq5ct?file=index.html,package.json,index.js

Optional extra steps/info to reproduce

No response

Possible solution

I think this happens because labels aren't actually removed from DOM, what if they are? In that case there would be enough of space for labels to position themselves horizontally, assuming I understood the mechanism behind the chart

Context

No response

chart.js version

v3.9.1

Browser name and version

No response

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

Successfully merging a pull request may close this issue.

1 participant