@_with_element
def vega_lite_chart(self, element, data=None, spec=None, width=0, use_container_width=False, **kwargs):
    "Display a chart using the Vega-Lite library.\n\n        Parameters\n        ----------\n        data : pandas.DataFrame, pandas.Styler, numpy.ndarray, Iterable, dict,\n            or None\n            Either the data to be plotted or a Vega-Lite spec containing the\n            data (which more closely follows the Vega-Lite API).\n\n        spec : dict or None\n            The Vega-Lite spec for the chart. If the spec was already passed in\n            the previous argument, this must be set to None. See\n            https://vega.github.io/vega-lite/docs/ for more info.\n\n        width : number\n            Deprecated. If != 0 (default), will show an alert.\n            From now on you should set the width directly in the Vega-Lite\n            spec. Please refer to the Vega-Lite documentation for details.\n\n        use_container_width : bool\n            If True, set the chart width to the column width. This takes\n            precedence over Vega-Lite's native `width` value.\n\n        **kwargs : any\n            Same as spec, but as keywords.\n\n        Example\n        -------\n\n        >>> import pandas as pd\n        >>> import numpy as np\n        >>>\n        >>> df = pd.DataFrame(\n        ...     np.random.randn(200, 3),\n        ...     columns=['a', 'b', 'c'])\n        >>>\n        >>> st.vega_lite_chart(df, {\n        ...     'mark': {'type': 'circle', 'tooltip': True},\n        ...     'encoding': {\n        ...         'x': {'field': 'a', 'type': 'quantitative'},\n        ...         'y': {'field': 'b', 'type': 'quantitative'},\n        ...         'size': {'field': 'c', 'type': 'quantitative'},\n        ...         'color': {'field': 'c', 'type': 'quantitative'},\n        ...     },\n        ... })\n\n        .. output::\n           https://share.streamlit.io/0.25.0-2JkNY/index.html?id=8jmmXR8iKoZGV4kXaKGYV5\n           height: 200px\n\n        Examples of Vega-Lite usage without Streamlit can be found at\n        https://vega.github.io/vega-lite/examples/. Most of those can be easily\n        translated to the syntax shown above.\n\n        "
    import streamlit.elements.vega_lite as vega_lite
    if (width != 0):
        import streamlit as st
        st.warning("The `width` argument in `st.vega_lite_chart` is deprecated and will be removed on 2020-03-04. To set the width, you should instead use Vega-Lite's native `width` argument as described at https://vega.github.io/vega-lite/docs/size.html")
    vega_lite.marshall(element.vega_lite_chart, data, spec, use_container_width=use_container_width, **kwargs)
Display a chart using the Vega-Lite library.

Parameters
----------
data : pandas.DataFrame, pandas.Styler, 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).

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.

width : number
    Deprecated. If != 0 (default), will show an alert.
    From now on you should set the width directly in the Vega-Lite
    spec. Please refer to the Vega-Lite documentation for details.

use_container_width : bool
    If True, set the chart width to the column width. This takes
    precedence over Vega-Lite's native `width` value.

**kwargs : any
    Same as spec, but as keywords.

Example
-------

>>> import pandas as pd
>>> import numpy as np
>>>
>>> df = pd.DataFrame(
...     np.random.randn(200, 3),
...     columns=['a', 'b', 'c'])
>>>
>>> st.vega_lite_chart(df, {
...     'mark': {'type': 'circle', 'tooltip': True},
...     'encoding': {
...         'x': {'field': 'a', 'type': 'quantitative'},
...         'y': {'field': 'b', 'type': 'quantitative'},
...         'size': {'field': 'c', 'type': 'quantitative'},
...         'color': {'field': 'c', 'type': 'quantitative'},
...     },
... })

.. output::
   https://share.streamlit.io/0.25.0-2JkNY/index.html?id=8jmmXR8iKoZGV4kXaKGYV5
   height: 200px

Examples of Vega-Lite usage without Streamlit can be found at
https://vega.github.io/vega-lite/examples/. Most of those can be easily
translated to the syntax shown above.
@_with_element
def vega_lite_chart(self, element, data=None, spec=None, width=0, use_container_width=False, **kwargs):
    "Display a chart using the Vega-Lite library.\n\n        Parameters\n        ----------\n        data : pandas.DataFrame, pandas.Styler, numpy.ndarray, Iterable, dict,\n            or None\n            Either the data to be plotted or a Vega-Lite spec containing the\n            data (which more closely follows the Vega-Lite API).\n\n        spec : dict or None\n            The Vega-Lite spec for the chart. If the spec was already passed in\n            the previous argument, this must be set to None. See\n            https://vega.github.io/vega-lite/docs/ for more info.\n\n        width : number\n            Deprecated. If != 0 (default), will show an alert.\n            From now on you should set the width directly in the Vega-Lite\n            spec. Please refer to the Vega-Lite documentation for details.\n\n        use_container_width : bool\n            If True, set the chart width to the column width. This takes\n            precedence over Vega-Lite's native `width` value.\n\n        **kwargs : any\n            Same as spec, but as keywords.\n\n        Example\n        -------\n\n        >>> import pandas as pd\n        >>> import numpy as np\n        >>>\n        >>> df = pd.DataFrame(\n        ...     np.random.randn(200, 3),\n        ...     columns=['a', 'b', 'c'])\n        >>>\n        >>> st.vega_lite_chart(df, {\n        ...     'mark': {'type': 'circle', 'tooltip': True},\n        ...     'encoding': {\n        ...         'x': {'field': 'a', 'type': 'quantitative'},\n        ...         'y': {'field': 'b', 'type': 'quantitative'},\n        ...         'size': {'field': 'c', 'type': 'quantitative'},\n        ...         'color': {'field': 'c', 'type': 'quantitative'},\n        ...     },\n        ... })\n\n        .. output::\n           https://share.streamlit.io/0.25.0-2JkNY/index.html?id=8jmmXR8iKoZGV4kXaKGYV5\n           height: 200px\n\n        Examples of Vega-Lite usage without Streamlit can be found at\n        https://vega.github.io/vega-lite/examples/. Most of those can be easily\n        translated to the syntax shown above.\n\n        "
    import streamlit.elements.vega_lite as vega_lite
    if (width != 0):
        import streamlit as st
        st.warning("The `width` argument in `st.vega_lite_chart` is deprecated and will be removed on 2020-03-04. To set the width, you should instead use Vega-Lite's native `width` argument as described at https://vega.github.io/vega-lite/docs/size.html")
    vega_lite.marshall(element.vega_lite_chart, data, spec, use_container_width=use_container_width, **kwargs)