Skip to content

chartjs-chart-graph / TreeController

Class: TreeController ​

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/TreeController.ts:16

Extends ​

Constructors ​

Constructor ​

new TreeController(chart, datasetIndex): TreeController

Defined in: .yarn/berry/cache/chart.js-npm-4.5.0-e95c375db8-10c0.zip/node_modules/chart.js/dist/types/index.d.ts:244

Parameters ​

chart ​

Chart

datasetIndex ​

number

Returns ​

TreeController

Inherited from ​

DendrogramController.constructor

Properties ​

getContext() ​

getContext: (index, active, mode) => unknown

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:210

Parameters ​

index ​

number

active ​

boolean

mode ​

"none" | "hide" | "show" | "default" | "active" | "resize" | "reset"

Returns ​

unknown

Inherited from ​

DendrogramController.getContext


id ​

readonly static id: "tree" = 'tree'

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/TreeController.ts:17

Overrides ​

DendrogramController.id

Methods ​

_resyncElements() ​

protected _resyncElements(): void

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:396

Returns ​

void

Inherited from ​

DendrogramController._resyncElements


doLayout() ​

doLayout(root): void

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/DendrogramController.ts:97

Parameters ​

root ​

HierarchyNode<{ angle?: number; x: number; y: number; }>

Returns ​

void

Inherited from ​

DendrogramController.doLayout


getTreeChildren() ​

getTreeChildren(node): ITreeNode[]

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:436

Parameters ​

node ​
index? ​

number

Returns ​

ITreeNode[]

Inherited from ​

DendrogramController.getTreeChildren


getTreeRoot() ​

getTreeRoot(): ITreeNode

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:429

Returns ​

ITreeNode

Inherited from ​

DendrogramController.getTreeRoot


getTreeRootIndex() ​

getTreeRootIndex(): number

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:413

Returns ​

number

Inherited from ​

DendrogramController.getTreeRootIndex


reLayout() ​

reLayout(newOptions): void

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/DendrogramController.ts:84

Parameters ​

newOptions ​

Partial<ITreeOptions> = {}

Returns ​

void

Inherited from ​

DendrogramController.reLayout


resetLayout() ​

resetLayout(): void

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:560

Returns ​

void

Inherited from ​

DendrogramController.resetLayout


resyncLayout() ​

resyncLayout(): void

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/DendrogramController.ts:72

Returns ​

void

Inherited from ​

DendrogramController.resyncLayout


stopLayout() ​

stopLayout(): void

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:564

Returns ​

void

Inherited from ​

DendrogramController.stopLayout