Skip to content

Function: addChord()

ts
function addChord(plot, opts): PatchesLayer;

Defined in: charts/chord.ts:190

Add a chord diagram: opaque per-group outer arcs plus semi-transparent ribbons (colored by their source group) as Patches, with labels outside each arc. Composes Plot.addPatches — set equalAspect: true on the plot.

Parameters

ParameterType
plotPlot
optsChordOptions

Returns

PatchesLayer

MIT licensed. WebGL2 required.