-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Fixed the error related to placement of x-axis tick labels consistently #2843
Conversation
…ndItems.length, also solved the padding issue for sizeLegend
@sophiamersmann Kindly review my PR. Thank You. |
Hi @Anubhav-2003, very nice work! When looking at this I also looked back at #975, which is the PR that introduced this code back in 2021. Back then, the main problem was that in some cases when faceting, axis labels would overlap. And while this PR works great in most cases, and the result indeed looks much better, there are also a few cases where it causes overlapping or cut-off text: However, I agree that we can do better in most cases, and in my head I'm currently thinking that the following would be a good solution:
Another (potentially more scalable) alternative would also be to pass to an axis a "safe zone" where it can render text without causing overlap - and where it would instead default to the right/left-aligning if the space is not enough. I checked the So, overall, this requires some more work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comment above ⬆️
@marcelgerber Thank you a lot for your such a comprehensive input. I will try my best to implement the changes you pointed out, and will keep working on the issue. But as I am new to the world of open source, I may feel a bit overwhelemd and make a few mistakes. Also, I may solve a few other issue in the organization to get a better understanding about the flow of logic in the code, and gain a bit more confidence, along with your guidance :) |
Yes that sounds great! |
This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected. |
Fixes: #2690
The following PR fixes the placement of x-axis tick labels for the extreme positions to center.