MAIDR JavaScript API
    Preparing search index...

    Interface ChartJsGraphValue

    One node of a chartjs-chart-graph dataset.

    All three of the plugin's controllers — tree, dendrogram and forceDirectedGraph — take the same flat node list, and a node names its parent by position in that list rather than by name. The field is not configurable: measured on chartjs-chart-graph@4, IGraphDataPoint declares parent and nothing else.

    A root has none. A forceDirectedGraph given an explicit ChartJsDataset.edges carries none on any node, the edges being the graph instead.

    interface ChartJsGraphValue {
        parent?: number;
        [column: string]: unknown;
    }

    Indexable

    • [column: string]: unknown

      The author's own columns — a node's name among them.

    Index

    Properties

    Properties

    parent?: number

    Which node is this one's parent, by index.