Chart elements
Streamlit supports several different charting libraries, and our goal is to
continually add support for more. Right now, the most basic library in our
arsenal is Matplotlib. Then there are also
interactive charting libraries like Vega
Lite (2D charts) and
deck.gl (maps and 3D charts). And
finally we also provide a few chart types that are "native" to Streamlit,
like st.line_chart and st.area_chart.
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)
