Skip to content

chartjs-chart-graph v4.3.0 / ForceDirectedGraphController

Class: ForceDirectedGraphController

Extends

Constructors

new ForceDirectedGraphController(chart, datasetIndex)

new ForceDirectedGraphController(chart, datasetIndex): ForceDirectedGraphController

Parameters

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

datasetIndex: number

Returns

ForceDirectedGraphController

Overrides

GraphController.constructor

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/ForceDirectedGraphController.ts:167

Properties

getContext

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

Parameters

index: number

active: boolean

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

Returns

unknown

Inherited from

GraphController.getContext

Source

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


id

static readonly id: "forceDirectedGraph" = 'forceDirectedGraph'

Overrides

GraphController.id

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/ForceDirectedGraphController.ts:365

Methods

_destroy()

_destroy(): void

Returns

void

Overrides

GraphController._destroy

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/ForceDirectedGraphController.ts:214


_resyncElements()

protected _resyncElements(): void

Returns

void

Inherited from

GraphController._resyncElements

Source

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


getTreeChildren()

getTreeChildren(node): ITreeNode[]

Parameters

node

node.index?: number

Returns

ITreeNode[]

Inherited from

GraphController.getTreeChildren

Source

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


getTreeRoot()

getTreeRoot(): ITreeNode

Returns

ITreeNode

Inherited from

GraphController.getTreeRoot

Source

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


getTreeRootIndex()

getTreeRootIndex(): number

Returns

number

Inherited from

GraphController.getTreeRootIndex

Source

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


reLayout()

reLayout(): void

Returns

void

Overrides

GraphController.reLayout

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/ForceDirectedGraphController.ts:356


resetLayout()

resetLayout(): void

Returns

void

Overrides

GraphController.resetLayout

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/ForceDirectedGraphController.ts:280


resyncLayout()

resyncLayout(): void

Returns

void

Overrides

GraphController.resyncLayout

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/ForceDirectedGraphController.ts:302


stopLayout()

stopLayout(): void

Returns

void

Overrides

GraphController.stopLayout

Source

work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/ForceDirectedGraphController.ts:360