Function signature[source] | |
---|---|
st.graphviz_chart(figure_or_dot, use_container_width=False) | |
Parameters | |
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. |
Example
Or you can render the chart from the graph using GraphViz's Dot language:
Still have questions?
Our forums are full of helpful information and Streamlit experts.