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.

Use Cases

  • Display interpersonal relationships in social networks, such as friendships and following relationships.
  • Show concept associations in knowledge graphs, displaying complex relationships between entities.
  • Analyze patterns in complex network structures, such as node connectivity in communication networks.

Visual Examples

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.

Options

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.
theme'default' | 'dark' | 'academy'optionalChart theme, default is "default".