Skip to content

chartjs-chart-graph v4.3.0 / GraphController

Class: GraphController

Extends

  • ScatterController

Constructors

new GraphController(chart, datasetIndex)

new GraphController(chart, datasetIndex): GraphController

Parameters

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

datasetIndex: number

Returns

GraphController

Inherited from

ScatterController.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

Source

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


id

static readonly id: string = 'graph'

Overrides

ScatterController.id

Source

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

Methods

_resyncElements()

protected _resyncElements(): void

Returns

void

Source

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


getTreeChildren()

getTreeChildren(node): ITreeNode[]

Parameters

node

node.index?: number

Returns

ITreeNode[]

Source

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


getTreeRoot()

getTreeRoot(): ITreeNode

Returns

ITreeNode

Source

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


getTreeRootIndex()

getTreeRootIndex(): number

Returns

number

Source

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


reLayout()

reLayout(): void

Returns

void

Source

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


resetLayout()

resetLayout(): void

Returns

void

Source

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


resyncLayout()

resyncLayout(): void

Returns

void

Source

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


stopLayout()

stopLayout(): void

Returns

void

Source

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