Something not working with Altair chart height past v0.47.4?

Iโ€™ve noticed this too. If you need another workaround Iโ€™ve discovered that by layering or vertically/horizontally joining altair charts together you can get it to correctly set the height.

For example if you have

chart = alt.Chart(df)โ€ฆ

you can use

st.altair_chart(chart + chart)

to get it to set the height correctly. However, it will slow down any interactions you have in your chart since itโ€™s now doubled what is being displayed.