Binds a D3.js sankey diagram to MAIDR, generating the accessible data
representation.
Point selector at the ribbons — one <path> per link, the
d3-sankey idiom being .data(graph.links).join('path') — rather than at
the node rectangles. The nodes are derived from the links, so the links are
what map one-to-one onto the payload; a selector matching the node rects
would give the trace a node count where it expects a link count, and
highlighting would be withdrawn.
A D3BinderResult with the MAIDR data and generated layer.
Remarks
Timing — call after the layout has run.sankey(graph) replaces each
link's source and target with the resolved node objects, and the binder
reads names either way; what it cannot do is run before the ribbons are
joined.
Binds a D3.js sankey diagram to MAIDR, generating the accessible data representation.
Point
selectorat the ribbons — one<path>per link, thed3-sankeyidiom being.data(graph.links).join('path')— rather than at the node rectangles. The nodes are derived from the links, so the links are what map one-to-one onto the payload; a selector matching the node rects would give the trace a node count where it expects a link count, and highlighting would be withdrawn.