Display a graph using the dagre-d3 library.
Function signature

st.graphviz_chart(figure_or_dot, use_container_width=False)


figure_or_dot (graphviz.dot.Graph, graphviz.dot.Digraph, str)

The Graphlib graph object or dot string to display

use_container_width (bool)

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

Was this page helpful?


Still have questions?

Our forums are full of helpful information and Streamlit experts.