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

Hide tick label for floating end label #2545

Open
nickofthyme opened this issue Oct 8, 2024 · 0 comments
Open

Hide tick label for floating end label #2545

nickofthyme opened this issue Oct 8, 2024 · 0 comments
Labels
bug Something isn't working :bullet Bullet chart related issues

Comments

@nickofthyme
Copy link
Collaborator

Describe the issue

The new Horizontal Bullet chart has a floating end label that is pushed to be left of the tick (right-aligned) when there is no longer room for it on the right side of the tick (left-aligned). However we never check if there is room for the tick label of the left side before doing this.

Thus where there is a long formatted value, the last 2 tick labels can collide.

To Reproduce

  1. Create a horizontal Bullet chart
  2. Add a range with large values or a long (~8 char) formatted length
  3. Shrink the width down to where the labels collide.

Expected behavior

Labels do no collide with each other

Screenshots

Image

Additional context

This seemingly would also apply to the vertical Bullet chart but to a lessor degree. Nonetheless should check for this case as well.

@nickofthyme nickofthyme added :bullet Bullet chart related issues bug Something isn't working labels Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working :bullet Bullet chart related issues
Projects
None yet
Development

No branches or pull requests

1 participant