Search⌘ K
AI Features

Display Charts with Streamlit

Explore how to display various types of charts in Streamlit apps using built-in methods like line_chart, area_chart, and bar_chart. Understand how to incorporate external libraries such as Matplotlib, Seaborn, and Plotly to enhance your app's data visualization capabilities.

We use the following code to generate some numerical data for this lesson:

Python 3.5
import numpy as np
df = np.random.randn(5,5)

Native charts

Streamlit offers three native ways to display data visually as charts.

They are as follows:

  • The st.line_chart() method produces a line chart.
  • The st.area_chart()
...