st.vega_lite_chart(data=None, spec=None, use_container_width=False, **kwargs)
data (pandas.DataFrame, pandas.Styler, pyarrow.Table, numpy.ndarray, Iterable, dict, or None)
Either the data to be plotted or a Vega-Lite spec containing the data (which more closely follows the Vega-Lite API). 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".
spec (dict or None)
The Vega-Lite spec for the chart. If the spec was already passed in the previous argument, this must be set to None. See https://vega.github.io/vega-lite/docs/ for more info.
If True, set the chart width to the column width. This takes precedence over Vega-Lite's native width value.
Same as spec, but as keywords.
Still have questions?
Our forums are full of helpful information and Streamlit experts.