Binds a D3.js treemap to MAIDR, generating the accessible data representation.
Point selector at the node marks — one <rect> per leaf for the canonical
d3.treemap()(root).leaves() join. Every matched element becomes one point,
in DOM order, and nothing is filtered: the interior nodes and their
totals are derived from the paths, so selecting the leaves alone is a
complete tree, and selecting more than you drew would leave the reader
navigating nodes that highlight nothing.
A D3BinderResult with the MAIDR data and generated layer.
Remarks
Timing — call after D3 has rendered. Like every D3 binder, this reads
each matched element's D3-bound __data__; calling it before
.data().join() has run (or before the SVG is mounted) throws "No elements
found for selector …".
Binds a D3.js treemap to MAIDR, generating the accessible data representation.
Point
selectorat the node marks — one<rect>per leaf for the canonicald3.treemap()(root).leaves()join. Every matched element becomes one point, in DOM order, and nothing is filtered: the interior nodes and their totals are derived from the paths, so selecting the leaves alone is a complete tree, and selecting more than you drew would leave the reader navigating nodes that highlight nothing.