Chord Diagram
Signature
sp.chord(title, labels, matrix, *, variant="basic", **kwargs) -> Chart
Aliases: sp.chord, sp.chord_chart, sp.chord_diagram
Description
Chord diagrams show relationships between entities using arcs and ribbons around a circle. The matrix is an N×N flow matrix where matrix[i][j] is the flow from node i to node j.
Variants
Data
labels (list[str]) — Node names. matrix (list[list[float]]) — N×N flow matrix. width / height (int) — Chart dimensions (default 700×700).
Parameters
Themes
Returns
Chart — object with .html property and .show() method.
Standard filled ribbons
Wider ribbon links
Arc-only (no filled ribbons)
Single-color monochrome
Draws a small arrowhead on each ribbon pointing toward whichever side receives more — reads the matrix's row/column asymmetry directly off the diagram instead of just the ribbon's natural taper.