altair_chart height computation broken for plots with yOffset since 1.34 #8642
Labels
feature:st.altair_chart
feature:st.vega_lite_chart
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Checklist
Summary
It seems something changed in the plot height computation for altair_chart in 1.34 that changes it's behavior to be incompatible to how plots display in other places (like in jupyter). The new behavior seems to force a fixed height, compressing bars down very thin. I have included screenshots of both old and new behavior.
Now the toy example i posted below might not look very bad compressed, but I assure you it is a very real problem in some more complex use cases. Attached is a before-after of a boxplot I have in an active dashboard, both before and after:
Before (i.e. version 1.33.0):
After (i.e. version 1.34.0):
Reproducible Code Example
Steps To Reproduce
Just run the example
Expected Behavior
Current Behavior
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: