Skip to content

Hierarchy Colors

A scriptable backgroundColor can colour each level of the hierarchy by its own rule: a category colour for the regions, a faint tint for the divisions, and for the states an opacity that follows their share of the division.

ctx.raw is the node, with l its level, g its group, v its value and gs the total of the nodes in its group.