Skip to content

Chord Chart

The Chord chart shows weighted relationships between nodes arranged around a circle. Use it for cyclic flows, reciprocal relationships, and many-to-many networks where direction matters but a left-to-right Sankey layout would be misleading.

Chord is opt-in. The default chart bundle remains bar,line,pie; run vizb chord or pass -c chord when you want the circular renderer.

Chord uses the same edge contract as Sankey:

Role Vizb field Example column
Source node x source
Target node y target
Link weight active statistic value

Sample many-to-many network (nodes AG, including reverse edges such as B → C and C → B). Use Copy CSV, save as chord-relations.csv, then run a command below. A clone of the repo also has examples/csv/chord-relations.csv.

relations.csv
sourcetargetvalue
AB14
AC8
BC20
BE15
CB8
CE3
DA12
DB3
EA15
EC5
FC5
GA6
GB8
GD4

Duplicate links in the same direction are summed. Reverse links remain separate, so B → C and C → B can have different weights. Numeric-looking source and target values remain categorical node names.

Grouped edge data maps source to x and target to y:

Terminal window
vizb chord chord-relations.csv -g source,target -p x,y -o chord.html
Chord chart of many-to-many relationships with gradient links between nodes A–G around a circular ring

Solo selection requires exactly three columns per --select: source, target, and value.

Terminal window
vizb chord chord-relations.csv --select source,target,value -o chord.html

To generate several chart types from the root command, include Chord explicitly:

Terminal window
vizb chord-relations.csv -g source,target -p x,y -c chord,sankey -o relationships.html

Repeat --select for additional measures. Every repeated view must reuse the same source and target columns; each measure becomes a statistic tab.

Terminal window
vizb relations.csv --select source,target,value --select source,target,cost -c chord -o relationships.html

Use n to split independent edge sets into named panels, just like other Vizb chart types:

Terminal window
vizb relations.csv -g name,source,target -p n,x,y -c chord -o panels.html

Z is ignored by Chord. It does not create a third visual dimension or a separate node axis; links continue to aggregate by (source, target).

Chord supports the initial edge-chart settings:

Setting CLI UI Effect
Sort --sort asc|desc Sort control Orders nodes by total relationship weight
Labels --show-labels Show labels Shows node labels around the circle
Legend (always on) Legend Lists nodes with colors; click to focus via legend hover
Swap --swap yx Axis switcher Reverses source and target roles
Statistics --stat Stats panel Enables the shared statistics panel

Scale, stacking, 3D, and visual-map settings do not apply to Chord.

  • Choose Chord for cycles, reciprocal edges, and dense many-to-many relationships where circular adjacency is the important structure.
  • Choose Sankey for staged, mostly left-to-right flows where path progression and flow conservation are the important structure.

Both charts share the same source/target/value data model, duplicate-link aggregation, named panels, repeated measures, and Z-ignored behavior.