Variable: chord
ts
const chord: GraphFunction<GraphInput | GraphMatrix, GraphDataOptions>;Experimental
A chord diagram: one chord trace, the nodes as arcs of a ring and the links as ribbons, from an edge table (with the options of graph that are about data) or from a square matrix (matrix[i][j]: the flow from node i to node j) with label as an array. color groups the nodes: the nodes of a group sit together, share a color and a legend item.
Example
ts
const figure = chord(trips, { source: 'from', target: 'to', weight: 'trips' });
const same = chord(matrix, { label: ['Harbor', 'Old Town', 'Campus'] });