OptionalxThe rectangle, in pixels.
OptionalyOptionalwOptionalhThe node's magnitude: a leaf's own value, or a group's sum.
OptionalsThe value the layout sized by, which sumKeys can separate from v.
OptionallIts depth, 0 at the outermost declared group.
OptionalgIts name at that level — the value of groups[l] on its rows.
OptionalgsIts parent group's sum.
OptionalisWhether it sits at the deepest declared group, which is not the same
as having no children in the source: measured with groups: ['continent']
over rows that also carry a country, Asia comes back isLeaf: true with
two children. It says where the drawn hierarchy stops.
Optional_The plugin's own record for the node. For a grouped tree it is an object
whose children are the source rows that fell under it; for a flat tree
it is the source number itself.
One drawn rectangle of a
chartjs-chart-treemapdataset.The plugin replaces
dataset.datawith these duringchart.update(), one per rectangle it laid out — measured onchartjs-chart-treemap@4.2.0, they are the identical objects each element's$context.rawpoints at, so the dataset is read directly and no element walk is needed.The layout reorders: a two-row source listing France then Japan comes back Japan first, largest rectangle first. That is the order the chart draws in and so the order the nodes are emitted in.
A flat tree carries only
v,sand a numeric_data: nog, nol, noisLeaf. Those three fields arrive together, oncegroupsis declared.