MAIDR Documentation - v4.4.0
    Preparing search index...

    One node of an am5hierarchy series, as the walk reaches it.

    Carries the live data item alongside the values, because the highlight path needs the node the reader is on and the walk is the only place the two are known together — an am5hierarchy series keeps only its root in dataItems, and every other node is reachable only by descending from it.

    interface AmHierarchyNode {
        dataItem: AmDataItem;
        name: string | number;
        path: (string | number)[];
        depth: number;
        value: number | null;
    }
    Index

    Properties

    dataItem: AmDataItem
    name: string | number

    What the node is called.

    path: (string | number)[]

    Its ancestors' names, outermost first, excluding the node and the root.

    depth: number

    Levels below the tree root — the row a MAIDR treemap addresses it by.

    value: number | null

    Its own declared magnitude, or null for a node that has none.