Skip to examples
Browse chart types
Chart library26 ways to visualize

RELATIONSHIP / CHART GUIDE

Network Graph

A network graph is a diagram that displays relationships (edges) between entities (nodes).

01 / EXPLORE

See it in action.

Switch to Code to copy an example.

In the Harry Potter series, Harry Potter's two best friends are Hermione Granger and Ron Weasley, and Voldemort is Harry's main enemy who attempted to kill Harry. Visualize with a network graph.

Team Collaboration Flow

Visualize the relationships between "Artificial Intelligence" related concepts in a knowledge graph using a network graph.

About Network Graph

A network graph is a diagram that displays relationships (edges) between entities (nodes). Through the connections of nodes and edges, it intuitively represents complex network structures. Each node represents an entity, and each edge represents a relationship or connection between two nodes.

02 / CONFIGURE

Make it yours.

The properties available for this chart.

Configuration Options

PropertyTypeRequiredDescription
typestringrequiredValue must be "network-graph".
dataObjectrequiredChart data, containing nodes and edges fields.
data.nodesObject[]requiredNode array, each node represents an entity.
data.nodes.namestringrequiredNode name, used as the unique identifier.
data.edgesObject[]requiredEdge array, each edge represents a relationship between two nodes.
data.edges.sourcestringrequiredSource node name, pointing to the name property of a node.
data.edges.targetstringrequiredTarget node name, pointing to the name property of a node.
data.edges.namestringoptionalEdge label, used to describe the relationship between two nodes.
layout'force' | 'circular' | 'grid' | 'radial' | 'concentric' | 'dagre'optionalLayout algorithm, default is "force".
titlestringoptionalChart title.
themeBuiltinThemeName | ThemeSpecoptionalBuilt-in theme name or custom theme object; default is "default". See Documentation → Custom Themes.
GPT-Vis · An AntV project · MIT licensed