MAIDR JavaScript API
    Preparing search index...

    Interface EChartsTreeNode

    One node of a hierarchy series' tree.

    Measured: getValue() answers the rolled-up sum for an interior node, so a declared value and a derived one are indistinguishable from the value alone -- see hierarchy.ts for what is done about that.

    interface EChartsTreeNode {
        name: string;
        children?: EChartsTreeNode[];
        getValue: () => number | null | undefined;
        getLayout?: () => unknown;
    }
    Index

    Properties

    name: string

    The node's name. The synthetic root's is the empty string.

    children?: EChartsTreeNode[]

    Its children, absent on a leaf.

    getValue: () => number | null | undefined

    Its magnitude, rolled up from the children where it has them.

    getLayout?: () => unknown

    Where the node was drawn -- on a sunburst, the slice's { cx, cy, r0, r, startAngle, endAngle }. Read only for a chart drawn to a canvas; see canvas.ts.