# st.graphviz_chart

Source: https://docs.streamlit.io/develop/api-reference/charts/st.graphviz_chart

* Function signature:

   ```python
   st.graphviz_chart(figure_or_dot, use_container_width=None, *, width="content", height="content", alt=None)
   ```

* Parameters:

   | name | type | default | description |
   |---|---|---|---|
   | figure_or_dot | graphviz.dot.Graph, graphviz.dot.Digraph, graphviz.sources.Source, str |  | The Graphlib graph object or dot string to display |
   | use_container_width | bool |  | Whether to override the figure's native width with the width of the parent container. If use_container_width is False (default), Streamlit sets the width of the chart to fit its contents according to the plotting library, up to the width of the parent container. If use_container_width is True, Streamlit sets the width of the figure to match the width of the parent container. |
   | width | "content", "stretch", or int |  | The width of the chart element. This can be one of the following:  "content" (default): The width of the element matches the width of its content, but doesn't exceed the width of the parent container. "stretch": The width of the element matches the width of the parent container. An integer specifying the width in pixels: The element has a fixed width. If the specified width is greater than the width of the parent container, the width of the element matches the width of the parent container. |
   | height | "content", "stretch", or int |  | The height of the chart element. This can be one of the following:  "content" (default): The height of the element matches the height of its content. "stretch": The height of the element matches the height of its content or the height of the parent container, whichever is larger. If the element is not in a parent container, the height of the element matches the height of its content. An integer specifying the height in pixels: The element has a fixed height. If the content is larger than the specified height, scrolling is enabled. |
   | alt | str or None |  | A description of the chart for screen readers and other assistive technologies. If this is None (default), Streamlit does not provide an accessible name for the chart. An empty or whitespace-only string is treated the same as None and is logged so authors notice the dual meaning of alt="" across commands (decorative only on st.image / st.pyplot). Describe what the graph shows rather than repeating text that is already visible on the page. This is a short description of the chart, not a full text alternative for a dense diagram. |
