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

Display the bar chart when a label is very long #1665

Closed
ortnever opened this issue Jul 19, 2024 · 5 comments · Fixed by #1666
Closed

Display the bar chart when a label is very long #1665

ortnever opened this issue Jul 19, 2024 · 5 comments · Fixed by #1666
Assignees
Labels
enhancement New feature or request

Comments

@ortnever
Copy link

ortnever commented Jul 19, 2024

When one of the labels is too long on the x axis, the height of the bar chart is shortened to the point where the graph is no longer visible.
@bprusinowski : Do you see a solution to avoid this?

@ortnever ortnever added the enhancement New feature or request label Jul 19, 2024
@bprusinowski
Copy link
Collaborator

@ortnever thanks for reporting the issue. We could guarantee a minimum height of a chart, or make it keep a certain aspect ratio, based on chart width. I don't think it should be a complex thing to do; and it would prevent cases like in the example link 👍

@ortnever
Copy link
Author

Thank you @bprusinowski for your prompt reaction.
guarantee a minimum height or make it keep a certain ratio will be fine.

@ortnever
Copy link
Author

Hi @bprusinowski : I notice that the same graph is displayed correctly on PROD. We may therefore have the same problem with other published graphics when we move the current INT release to PROD.
https://www.visualize.admin.ch/fr/v/R8H96ToID0FE
Is it possible to correct this before deployment?

@sosiology

@bprusinowski
Copy link
Collaborator

Hi @ortnever, we will include this fix in the upcoming release :)

@ortnever
Copy link
Author

Wonderful. Thank you @bprusinowski

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants