Documentation / @ripl/charts / createChordChart
Function: createChordChart()
createChordChart(
target,options):ChordChart
Defined in: charts/src/charts/chord.ts:592
Factory function that creates a new ChordChart instance.
Parameters
| Parameter | Type |
|---|---|
target | string | Context<Element, Record<string, unknown>> | HTMLElement |
options | ChordChartOptions |
Returns
Example
ts
createChordChart(target, {
labels: ['A', 'B', 'C'],
matrix: [
[0, 5, 2],
[5, 0, 3],
[2, 3, 0],
],
});