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

Broken ticks mirror option (since beta 10) #8473

Closed
emmcb opened this issue Feb 21, 2021 · 1 comment · Fixed by #8482
Closed

Broken ticks mirror option (since beta 10) #8473

emmcb opened this issue Feb 21, 2021 · 1 comment · Fixed by #8482
Milestone

Comments

@emmcb
Copy link
Contributor

emmcb commented Feb 21, 2021

Since 3.0.0 beta 10, setting mirror: true makes the ticks to disappear.

Fiddle: https://jsfiddle.net/0sz3hnqy/

If you switch back the chart.js version to beta 9, the ticks were mirrored correctly.

@kurkle
Copy link
Member

kurkle commented Feb 21, 2021

This would be due to clipping introduced in: #8359

The mirror option needs to be considered in _computeLabelArea

Just verified its not only the clipping, but also the label width calculation modified in the same PR.

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.

2 participants