Display an area chart.
Function signature

st.area_chart(data=None, width=0, height=0, use_container_width=True)


data (pandas.DataFrame, pandas.Styler, pyarrow.Table, numpy.ndarray, Iterable, or dict)

Data to be plotted. Pyarrow tables are not supported by Streamlit's legacy DataFrame serialization (i.e. with config.dataFrameSerialization = "legacy"). To use pyarrow tables, please enable pyarrow by changing the config setting, config.dataFrameSerialization = "arrow".

width (int)

The chart width in pixels. If 0, selects the width automatically.

height (int)

The chart height in pixels. If 0, selects the height automatically.

use_container_width (bool)

If True, set the chart width to the column width. This takes precedence over the width argument.

Was this page helpful?


Still have questions?

Our forums are full of helpful information and Streamlit experts.