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

    Interface AnyChartTreeItem

    One node of the task tree backing a gantt chart.

    A gantt is the one AnyChart chart type whose data is neither a series nor a flat data view: chart.data() hands back an anychart.data.Tree whose items carry actualStart / actualEnd (a project chart) or a periods array (a resource chart), and whose children are the rows drawn beneath their parent.

    interface AnyChartTreeItem {
        get: (field: string) => unknown;
        meta?: (key: string) => unknown;
        numChildren?: () => number;
        getChildAt?: (index: number) => AnyChartTreeItem | null;
    }
    Index

    Properties

    get: (field: string) => unknown

    Reads one field of the task — 'name', 'actualStart', 'periods'.

    meta?: (key: string) => unknown

    Reads a value the chart computed for the task rather than one the author wrote. A parent task states no dates of its own: AnyChart derives them from its children and stores them as 'autoStart' / 'autoEnd'.

    numChildren?: () => number
    getChildAt?: (index: number) => AnyChartTreeItem | null