Skip to content

Network

Show relationships between nodes, including cyclic and self-links.

Chart ID: network. Independent import: @revolist/charts/network.

Loading chart…

Each line is a weighted connection between two nodes. Thicker lines represent larger link values. Node positions are arranged around a circle.

Use a non-negative category-by-series matrix or pass explicit graph data created with createChartNetworkData. A graph can include cycles and self-links.

Use non-negative values for this chart. Negative values are rejected; explicit nulls represent missing observations.

The roles below describe the chart's data contract. Generic category/value roles resolve from the dataset; explicitly bind specialized numeric roles as shown in the complete example.

Data roleField count
source1 or more
target1 or more
weight1 or more

Download the complete sample data and settings (JSON). See Data & Configuration for mapping, null values, updates and lifecycle rules.

Install the package using the installation guide, give the host an explicit height, and call createNetworkChart after the host mounts. This factory fixes the chart type to network.

<div id="chart" style="width: 100%; height: 450px;"></div>
Complete runnable TypeScript example with sample data
import { createNetworkChart } from '@revolist/charts/network';
import sample from './sample-data';
const chart = await createNetworkChart({
container: document.getElementById('chart')!,
...sample,
});

Await updates before reading a snapshot or exporting. Call chart.destroy() when the host unmounts. See the live catalog to interact with this type.

Set these fields in chartOptions. The option schema validates supported keys, ranges and choices; updating chartOptions replaces that authored object.

OptionDefaultAccepted values
markOpacity10.2 to 1; step 0.05
pinTooltipsfalsetrue or false

Titles, legends, theme and labels belong to presentation or the corresponding top-level setting. Axis, color, navigation and interaction support depends on the selected chart; see Data & Configuration.

  • Sankey — Trace weighted flow from categories to connected measures.
  • Chord — Compare weighted relationships through circular ribbons.

Charts overview · Installation · Data & Configuration