-
Notifications
You must be signed in to change notification settings - Fork 3
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
Long Titles Wrap but Cover the Chart #1878
Comments
Reopening this @noahonyejese as while testing this issue https://github.com/visualize-admin/visualization-tool-private/issues/110 I noticed the labels cover the charts. I am not sure if this is a regression, or something missed during testing. Example Charts
Tested on a samsung galaxy s24, using Chrome. |
Hi @sosiology , I don't think it's on int yet I tested it on https://test.visualize.admin.ch and it seems to work fine there for screens as small as 375px in width (Iphone SE), let me know what you think. |
@sosiology however I increased the margin a bit hope this works |
@noahonyejese Thank you.
|
@florelina thanks for the feedback it seems like there won't be really a solution that fits all sizes. either the smaller screens have too little spacing or the larger screens have too much. @bprusinowski do you think I should add a condition that makes more space for extra small screen? Or extra long labels? |
@noahonyejese I think it should be possible to make it work correctly in all cases – it looks that currently in the code we try to compute the new height by multiplying I think here we should also take into account things like e.g. What do you think? |
If we want to add additional calculations for the |
@bprusinowski I tried your approach it's slightly better, I think like this it's probably ideal. - thanks for the advice 👍 |
To reproduce, see https://int.visualize.admin.ch/en/v/wVfk4PSYRdYk?dataSource=Prod on a smaller screen – the Y axis titles are wrapped, but the chart is not shifted to the bottom, so they are covering the chart.
The text was updated successfully, but these errors were encountered: