|
|
@@ -185,7 +185,7 @@ def container_dataframe():
|
|
|
})
|
|
|
|
|
|
with st.container(height=300, border=True):
|
|
|
- st.dataframe(wide_df, use_container_width=True)
|
|
|
+ st.dataframe(wide_df, width='stretch')
|
|
|
|
|
|
st.write("☝️ DataFrame自动支持横向滚动")
|
|
|
|
|
|
@@ -250,7 +250,7 @@ def container_plotly_chart():
|
|
|
)
|
|
|
|
|
|
with st.container(height=450, border=True):
|
|
|
- st.plotly_chart(fig, use_container_width=False)
|
|
|
+ st.plotly_chart(fig, width='content')
|
|
|
|
|
|
st.write("☝️ Plotly图表在容器中自动支持横向滚动")
|
|
|
|