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.
One node of a
chartjs-chart-graphdataset.All three of the plugin's controllers —
tree,dendrogramandforceDirectedGraph— 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 onchartjs-chart-graph@4,IGraphDataPointdeclaresparentand nothing else.A root has none. A
forceDirectedGraphgiven an explicit ChartJsDataset.edges carries none on any node, the edges being the graph instead.