Skip to content

chartjs-chart-graph v4.3.0 / TreeController

Class: TreeController

Extends

Constructors

new TreeController(chart, datasetIndex)

new TreeController(chart, datasetIndex): TreeController

Parameters

chart: Chart<keyof ChartTypeRegistry, (null | number | [number, number] | Point | BubbleDataPoint | IGraphDataPoint | IGraphDataPoint & Record<string, unknown>)[], unknown>

datasetIndex: number

Returns

TreeController

Inherited from

DendrogramController.constructor

Source

.yarn/berry/cache/chart.js-npm-4.4.2-e9b1497a6e-10c0.zip/node_modules/chart.js/dist/types/index.d.ts:244

Properties

getContext

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

Parameters

index: number

active: boolean

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

Returns

unknown

Inherited from

DendrogramController.getContext

Source

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


id

static readonly id: "tree" = 'tree'

Overrides

DendrogramController.id

Source

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

Methods

_destroy()

_destroy(): void

Returns

void

Inherited from

DendrogramController._destroy

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/DendrogramController.ts:54


_resyncElements()

protected _resyncElements(): void

Returns

void

Inherited from

DendrogramController._resyncElements

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:397


doLayout()

doLayout(root): void

Parameters

root: HierarchyNode<Object>

Returns

void

Inherited from

DendrogramController.doLayout

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/DendrogramController.ts:99


getTreeChildren()

getTreeChildren(node): ITreeNode[]

Parameters

node

node.index?: number

Returns

ITreeNode[]

Inherited from

DendrogramController.getTreeChildren

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:437


getTreeRoot()

getTreeRoot(): ITreeNode

Returns

ITreeNode

Inherited from

DendrogramController.getTreeRoot

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:430


getTreeRootIndex()

getTreeRootIndex(): number

Returns

number

Inherited from

DendrogramController.getTreeRootIndex

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:414


reLayout()

reLayout(newOptions): void

Parameters

newOptions: Partial<ITreeOptions>= {}

Returns

void

Inherited from

DendrogramController.reLayout

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/DendrogramController.ts:86


resetLayout()

resetLayout(): void

Returns

void

Inherited from

DendrogramController.resetLayout

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:566


resyncLayout()

resyncLayout(): void

Returns

void

Inherited from

DendrogramController.resyncLayout

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/DendrogramController.ts:74


stopLayout()

stopLayout(): void

Returns

void

Inherited from

DendrogramController.stopLayout

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/GraphController.ts:571