✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Bar chart: force that all bars get their label?

I have a (horizontal) bar chart with many bars. By default plotly (I am using Plotly express) shows all the bars, but only a subset of the labels for the bars.

Is there a way to force that all labels are shown? Is there a way to allow the size (in this case, height) of the figure to adapt to what is needed to show all labels?
Without any of these two options, the only way I found to make this work is to manually increase the height of the figure until Plotly decides for whatever reason to show me all the labels.