Skip to content

Function: chordLayout()

ts
function chordLayout(matrix, opts?): ChordLayoutResult;

Defined in: charts/chord.ts:73

Chord layout: groups sit around a circle with angular span ∝ their row-sum (standard chord convention), separated by padAngle. Each group's arc is sub-divided per target j; a ribbon between i and j is bounded by the two matching sub-arcs and closed by quadratic beziers curving through the center. Pure — no side effects. Empty/zero-flow input yields empty arrays.

Parameters

ParameterType
matrixnumber[][]
optsChordLayoutOptions

Returns

ChordLayoutResult

MIT licensed. WebGL2 required.