visualize-admin / visualization-tool

The tool for visualizing Swiss Open Government Data. Project ownership: Federal Office for the Environment FOEN
https://visualize.admin.ch
BSD 3-Clause "New" or "Revised" License
30 stars 3 forks source link

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

Closed ortnever closed 1 month ago

ortnever commented 1 month ago

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?

bprusinowski commented 1 month ago

@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 commented 1 month ago

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

ortnever commented 1 month ago

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 commented 1 month ago

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

ortnever commented 1 month ago

Wonderful. Thank you @bprusinowski