Skip to main content

Module partition

Module partition 

Source
Expand description

StatPartition: hierarchical partition layout (icicle / sunburst).

Each input row is a leaf path given by the levels columns (outermost first) with a weight (1 when unmapped). Every prefix of a path is a node whose value is the sum of its leaves. Nodes at depth d occupy y ∈ [d, d + 1]; siblings split their parent’s x span in proportion to value (first-appearance order, or largest first with sort). The root spans x ∈ [0, 1]. A missing (Na/empty) level ends a path early, so ragged hierarchies work.

Output: one row per node with xmin/xmax/ymin/ymax, depth (0-based), node (its own level value), path ("A / B / C"), root (the depth-0 ancestor, for colouring), value and share (of the total).

Structs§

StatPartition
Partition stat behind GeomPartition.