Display a metric in big bold font, with an optional indicator of how the metric changed.
python
st.metric("My metric", 42, 2)
Dicts and JSON
Display object or string as a pretty-printed JSON string.
python
st.json(my_data_frame)
Chart elements
Simple line charts
Display a line chart.
python
st.line_chart(my_data_frame)
Simple area charts
Display an area chart.
python
st.area_chart(my_data_frame)
Simple bar charts
Display a bar chart.
python
st.bar_chart(my_data_frame)
Scatterplots on maps
Display a map with points on it.
python
st.map(my_data_frame)
Matplotlib
Display a matplotlib.pyplot figure.
python
st.pyplot(my_mpl_figure)
Altair
Display a chart using the Altair library.
python
st.altair_chart(my_altair_chart)
Vega-Lite
Display a chart using the Vega-Lite library.
python
st.vega_lite_chart(my_vega_lite_chart)
