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

Axis label count not updated when axis is stretched #40

Open
trisyoungs opened this issue May 11, 2022 · 0 comments
Open

Axis label count not updated when axis is stretched #40

trisyoungs opened this issue May 11, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@trisyoungs
Copy link
Member

Resizing the widget scales the positions of axis labels as it should, but results in overlap of adjacent labels when the axis bar extent drops below some value. To solve this, tick marks should be updated on resize.

There is probably a nicer way than doing this at every resize event. For instance, the width extent of each text primitive could be stored (if it isn't a;ready) and checked for overlap with its neighbours. If an overlap is detected, the tick labels can then be regenerated.

@trisyoungs trisyoungs added the bug Something isn't working label May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant