yFiles Graphs for Streamlit
The powerful Python graph library for Streamlit

Streamlit connected to yFiles Graphs for Streamlit generates a beautiful graph

Elevate Your Streamlit Apps with Intuitive Graphing Tools

yFiles Graphs for Streamlit is a free Python diagram library component for Streamlit Apps. It can import structured data from popular Python graph packages like NetworkX, igraph, PyGraphviz, Neo4j, or any structured list of nodes and edges.

Powerful layout algorithms from the established yFiles SDK are included. You can easily apply the whole range – organic, hierarchic, tree, orthogonal, circular, and radial – to your graph structure. A suitable, clear visualization helps you gain a better understanding of your data.

The component includes interactive features such as automatic layouts, item-level neighborhood exploration, detailed data views, and search capabilities. Aside from interactive features, it also provides a Python API to enable data-driven styling and integrate high-performance layout algorithms to embed a high-fidelity rendering into your Streamlit apps.

yFiles Graphs for Streamlit

GitHub page

Install

pip install yfiles_graphs_for_streamlit

See at pypi.org

What to expect on this page

load from YouTube

Why use yFiles Graphs for Streamlit?

Import and Visualize

Import from popular Python graph packages and create revealing yet concise visualizations. Just pass the graph data of NetworkX, graph-tool, igraph, PyGraphviz, or structured node and edge lists to the component and interactively explore your network.

Automatic Layouts

Benefit of yFiles' superior automatic layout algorithms. Easily arrange your graph with different layout styles: Hierarchic, organic (force-directed), tree, orthogonal, circular, or radial. Each layout style highlights different structural features of the graph and helps you gain new insights into the data.

Data-driven mappings

yFiles offers customizable, data-driven mappings for nodes and edges. These mappings let you adjust visual aspects of the diagram - like color, scale, and edge thickness - as well as structural aspects like an item label or position.

Features

Choose graph layout

Select a graph layout from the toolbar to rearrange your graph items automatically.

See item neighborhood

Check the sidebar's Neighborhood tab to explore node connections and view their adjacent items.

Import graph data

Import your graph data from popular Python packages like NetworkX, igraph, PyGraphviz, Neo4j, or any structured list of nodes and edges.

Data-driven visualization

Use your data to adjust the visualization of nodes and edges with versatile data mapping functions.

Visualize data as heatmap

Visualize data as a heatmap overlay for an additional information layer.

Use geospatial data

Use geospatial coordinates to display your data on a map.

Grouping support

Visualize hierarchies in your data.

Feedback?

Let us know about your use case and what features you would like to see in the future.

Contact us
See examples

More Features

Visualization mappings

Map your data properties to different visualization properties per item, to highlight specific structures.

Geometry mappings

Map your data properties to different item geometries.

Integratable with other Streamlit Components

Obtain interactively changeable graphs by combining mappings with other Streamlit Components. Or build comprehensive dashboards by combining yFiles Graphs for Streamlit with charts from libraries like Plotly, Altair, or Matplotlib.

Export to yEd Live

Export the diagram to our free online diagram editor yEd Live, for extensive further editing and export features.

Why use yFiles Graphs for Streamlit with NetworkX?

Seamless integration

Import NetworkX graphs directly without manually converting data structures. The component handles the translation seamlessly, letting you focus on your data analysis.

Full interactivity

Unlike static Matplotlib plots, yFiles graphs are fully interactive. Users can drag nodes, zoom, view details via tooltips, explore node neighborhoods, and instantly switch between different automatic graph layouts.

Professional layouts

Leverage sophisticated algorithms—such as hierarchic, organic, circular, or orthogonal—to automatically arrange even complex networks for maximum clarity and insight.

High performance

Built with WebGL technology, the visualization remains smooth and performant, even when rendering larger datasets and complex graphs.

Free license

Valuable visualizations – at no cost


We are pleased to offer you a perpetual, free, non-transferable license to install and dynamically use this component in your Streamlit apps.

Technical information

yFiles Graphs for Streamlit is an extension for Streamlit Apps

It is based on yFiles - the superior diagramming SDK. You can try a fully-functional version of yFiles free of charge. Explore the whole scope of graph drawing and integrate interactive visualizations into your own software products!

Help

Have more questions?
Find helpful information here:

Install yFiles Graphs for Streamlit

Frequently Asked Questions

Getting started

Step 1
Install Streamlit

Install Streamlit on your system.

Step 2
Install the component

Install the yFiles Graphs for Streamlit component with

pip install yfiles_graphs_for_streamlit

Step 3
Create your App

Instantiate the component, import structured graph data, and create your own Streamlit App!

Install yFiles Graphs for Streamlit

The enterprise solution for data visualization and graph drawing

yFiles logo for all platforms

Integrable into your application
Suitable for any use case
Highly customizable to fit your needs
Compatible with any type of data

Why, how, what? —
Just ask the diagramming experts!

Our team is happy to advise you – no strings attached. Let's talk about your project and find the perfect solution for your needs!

E-mail: hello@yworks.com

The data you enter will only be used to contact you regarding your request.
Learn more in our privacy policy.