Plotly graphs fail to extend in width and fill the screen in "wide mode" in 0.53. Works in 0.52.2.
Minimal streamlit app:
import streamlit as st
import cufflinks
fig = cufflinks.datagen.lines().iplot(asFigure=True)
st.write(fig)
Check 'wide mode' in settings.
Hi @everling ,
You have to pass use_container_width=True to the chart. Also this parameter isn't supported by st.write so you have to use st.plotly_chart.
Please try the following..
import streamlit as st
import cufflinks
fig = cufflinks.datagen.lines().iplot(asFigure=True)
st.plotly_chart(fig, use_container_width=True)
Most helpful comment
Hi @everling ,
You have to pass
use_container_width=Trueto the chart. Also this parameter isn't supported byst.writeso you have to usest.plotly_chart.Please try the following..