May 2019
Beginner to intermediate
650 pages
14h 50m
English
Chord/ribbon diagrams can be created in D3 using the generator functions from the d3-chord module, which is part of the default D3 bundle. The module contains two layout generator functions: the d3.chord() layout generator and d3.ribbon() shape generator described in the table below. A typical chord diagram also uses the d3.arc() shape generator (from d3-shape) to render nodes.
|
Function |
Description |
|
d3.chord() |
Returns a chord layout generator function. The layout function receives a matrix as input returning an array of chord objects (links) and an array of groups (nodes). |
|
d3.ribbon() |
Returns a ribbon path generator function. The function receives a chord object and uses its properties to generate ... |
Read now
Unlock full access