selector matches the ribbon <path> elements d3.ribbon() drew from
d3.chord()(matrix) — the chords themselves, not the group arcs around the
dial.
Declare names. A chord layout is computed from a matrix, so each end of
a ribbon is a row index ({ index, value, … }) and the labels a sighted
reader takes from the ring are not in the data at all. Without names the
chart announces "0 to 3" — true, and useless.
Binds a D3.js chord diagram to MAIDR.
selectormatches the ribbon<path>elementsd3.ribbon()drew fromd3.chord()(matrix)— the chords themselves, not the group arcs around the dial.Declare
names. A chord layout is computed from a matrix, so each end of a ribbon is a row index ({ index, value, … }) and the labels a sighted reader takes from the ring are not in the data at all. Withoutnamesthe chart announces "0 to 3" — true, and useless.