Plotly chart doesn't update when changing value of use_container_width
#8576
Labels
feature:st.plotly_chart
priority:P3
status:confirmed
Bug has been confirmed by the Streamlit team
type:bug
Something isn't working
Checklist
Summary
When I have a Plotly chart with
use_container_width=True
, and I update it touse_container_width=False
, the displayed chart won't update when doing a simple rerun. It requires a full reload of the page to update.Reproducible Code Example
Steps To Reproduce
use_container_width=True
in the last line touse_container_width=False
.Expected Behavior
The plot should change its size after the rerun.
Current Behavior
The plot does not change its size. But if you reload the entire website via the browser, it does change its size. Note that the other way around (changing from
use_container_width=False
touse_container_width=True
) works as expected after a normal rerun.Is this a regression?
Debug info
Additional Information
No response
The text was updated successfully, but these errors were encountered: