@_with_element
def graphviz_chart(self, element, figure_or_dot, width=0, height=0, use_container_width=False):
    "Display a graph using the dagre-d3 library.\n\n        Parameters\n        ----------\n        figure_or_dot : graphviz.dot.Graph, graphviz.dot.Digraph, str\n            The Graphlib graph object or dot string to display\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 Graphviz\n            spec. Please refer to the Graphviz documentation for details.\n\n        height : number\n            Deprecated. If != 0 (default), will show an alert.\n            From now on you should set the height directly in the Graphviz\n            spec. Please refer to the Graphviz 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 the figure's native `width` value.\n\n        Example\n        -------\n\n        >>> import streamlit as st\n        >>> import graphviz as graphviz\n        >>>\n        >>> # Create a graphlib graph object\n        >>> graph = graphviz.Digraph()\n        >>> graph.edge('run', 'intr')\n        >>> graph.edge('intr', 'runbl')\n        >>> graph.edge('runbl', 'run')\n        >>> graph.edge('run', 'kernel')\n        >>> graph.edge('kernel', 'zombie')\n        >>> graph.edge('kernel', 'sleep')\n        >>> graph.edge('kernel', 'runmem')\n        >>> graph.edge('sleep', 'swap')\n        >>> graph.edge('swap', 'runswap')\n        >>> graph.edge('runswap', 'new')\n        >>> graph.edge('runswap', 'runmem')\n        >>> graph.edge('new', 'runmem')\n        >>> graph.edge('sleep', 'runmem')\n        >>>\n        >>> st.graphviz_chart(graph)\n\n        Or you can render the chart from the graph using GraphViz's Dot\n        language:\n\n        >>> st.graphviz_chart('''\n            digraph {\n                run -> intr\n                intr -> runbl\n                runbl -> run\n                run -> kernel\n                kernel -> zombie\n                kernel -> sleep\n                kernel -> runmem\n                sleep -> swap\n                swap -> runswap\n                runswap -> new\n                runswap -> runmem\n                new -> runmem\n                sleep -> runmem\n            }\n        ''')\n\n        .. output::\n           https://share.streamlit.io/0.56.0-xTAd/index.html?id=GBn3GXZie5K1kXuBKe4yQL\n           height: 400px\n\n        "
    import streamlit.elements.graphviz_chart as graphviz_chart
    if ((width != 0) and (height != 0)):
        import streamlit as st
        st.warning('The `width` and `height` arguments in `st.graphviz` are deprecated and will be removed on 2020-03-04')
    elif (width != 0):
        import streamlit as st
        st.warning('The `width` argument in `st.graphviz` is deprecated and will be removed on 2020-03-04')
    elif (height != 0):
        import streamlit as st
        st.warning('The `height` argument in `st.graphviz` is deprecated and will be removed on 2020-03-04')
    graphviz_chart.marshall(element.graphviz_chart, figure_or_dot, use_container_width)
Display a graph using the dagre-d3 library.

Parameters
----------
figure_or_dot : graphviz.dot.Graph, graphviz.dot.Digraph, str
    The Graphlib graph object or dot string to display

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

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

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

Example
-------

>>> import streamlit as st
>>> import graphviz as graphviz
>>>
>>> # Create a graphlib graph object
>>> graph = graphviz.Digraph()
>>> graph.edge('run', 'intr')
>>> graph.edge('intr', 'runbl')
>>> graph.edge('runbl', 'run')
>>> graph.edge('run', 'kernel')
>>> graph.edge('kernel', 'zombie')
>>> graph.edge('kernel', 'sleep')
>>> graph.edge('kernel', 'runmem')
>>> graph.edge('sleep', 'swap')
>>> graph.edge('swap', 'runswap')
>>> graph.edge('runswap', 'new')
>>> graph.edge('runswap', 'runmem')
>>> graph.edge('new', 'runmem')
>>> graph.edge('sleep', 'runmem')
>>>
>>> st.graphviz_chart(graph)

Or you can render the chart from the graph using GraphViz's Dot
language:

>>> st.graphviz_chart('''
    digraph {
        run -> intr
        intr -> runbl
        runbl -> run
        run -> kernel
        kernel -> zombie
        kernel -> sleep
        kernel -> runmem
        sleep -> swap
        swap -> runswap
        runswap -> new
        runswap -> runmem
        new -> runmem
        sleep -> runmem
    }
''')

.. output::
   https://share.streamlit.io/0.56.0-xTAd/index.html?id=GBn3GXZie5K1kXuBKe4yQL
   height: 400px
@_with_element
def graphviz_chart(self, element, figure_or_dot, width=0, height=0, use_container_width=False):
    "Display a graph using the dagre-d3 library.\n\n        Parameters\n        ----------\n        figure_or_dot : graphviz.dot.Graph, graphviz.dot.Digraph, str\n            The Graphlib graph object or dot string to display\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 Graphviz\n            spec. Please refer to the Graphviz documentation for details.\n\n        height : number\n            Deprecated. If != 0 (default), will show an alert.\n            From now on you should set the height directly in the Graphviz\n            spec. Please refer to the Graphviz 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 the figure's native `width` value.\n\n        Example\n        -------\n\n        >>> import streamlit as st\n        >>> import graphviz as graphviz\n        >>>\n        >>> # Create a graphlib graph object\n        >>> graph = graphviz.Digraph()\n        >>> graph.edge('run', 'intr')\n        >>> graph.edge('intr', 'runbl')\n        >>> graph.edge('runbl', 'run')\n        >>> graph.edge('run', 'kernel')\n        >>> graph.edge('kernel', 'zombie')\n        >>> graph.edge('kernel', 'sleep')\n        >>> graph.edge('kernel', 'runmem')\n        >>> graph.edge('sleep', 'swap')\n        >>> graph.edge('swap', 'runswap')\n        >>> graph.edge('runswap', 'new')\n        >>> graph.edge('runswap', 'runmem')\n        >>> graph.edge('new', 'runmem')\n        >>> graph.edge('sleep', 'runmem')\n        >>>\n        >>> st.graphviz_chart(graph)\n\n        Or you can render the chart from the graph using GraphViz's Dot\n        language:\n\n        >>> st.graphviz_chart('\n            digraph {\n                run -> intr\n                intr -> runbl\n                runbl -> run\n                run -> kernel\n                kernel -> zombie\n                kernel -> sleep\n                kernel -> runmem\n                sleep -> swap\n                swap -> runswap\n                runswap -> new\n                runswap -> runmem\n                new -> runmem\n                sleep -> runmem\n            }\n        ')\n\n        .. output::\n           https://share.streamlit.io/0.56.0-xTAd/index.html?id=GBn3GXZie5K1kXuBKe4yQL\n           height: 400px\n\n        "
    import streamlit.elements.graphviz_chart as graphviz_chart
    if ((width != 0) and (height != 0)):
        import streamlit as st
        st.warning('The `width` and `height` arguments in `st.graphviz` are deprecated and will be removed on 2020-03-04')
    elif (width != 0):
        import streamlit as st
        st.warning('The `width` argument in `st.graphviz` is deprecated and will be removed on 2020-03-04')
    elif (height != 0):
        import streamlit as st
        st.warning('The `height` argument in `st.graphviz` is deprecated and will be removed on 2020-03-04')
    graphviz_chart.marshall(element.graphviz_chart, figure_or_dot, use_container_width)