Altair Grouped Barchart with st.altair_chart(use_container_width=True) creates multiple charts instead of one single grouped chart #8531
Labels
feature:st.altair_chart
status:needs-triage
Has not been triaged by the Streamlit team
type:bug
Something isn't working
Checklist
Summary
When creating a grouped bar chart using Altair and render it with
st.altair_chart(fig, use_container_width=True)
, multiple charts for each group, rather than a combined single chart, is created. See screenshot attached. Code to reproduce is also attached.Reproducible Code Example
Steps To Reproduce
streamlit run app.py
.Expected Behavior
Expecting a single grouped bar chart is created and spans over the width of the container, rather than having multiple charts created when rendering with
st.altair_chart(fig, use_container_width=True)
.Current Behavior
Current behavior is: multiple charts for each column/group is created.
Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: