What the node is called. Unique among its siblings, not chart-wide.
OptionalyThe node's magnitude.
Omitted for an interior node whose value is the sum of its children, which is the ordinary case. A declared value is kept even where it disagrees with that sum: a parent may carry mass no child accounts for, and overwriting it would be inventing data.
OptionalpathThe node's ancestors, root first, excluding the node itself.
A top-level node omits it or declares [].
One node of a treemap, or of any other hierarchy drawn as area.
The hierarchy is declared as a path rather than as a parent pointer. A path is acyclic by construction and cannot dangle: there is no id to point at a node that was never emitted, and no way to author a cycle. Every producer has one -- a
d3.hierarchywalk yields it directly, and Plotly'slabels/parentspair resolves to it -- and it doubles as the breadcrumb the reader is told when they are several levels down.Interior nodes need not be declared. A layer emitting only its leaves -- which is what a treemap draws -- gets its interior nodes and their totals derived from the paths.
Example