chartjs-gauge

chartjs-gauge-v3 - v3.0.0-beta.1 / GaugeController

Class: GaugeController

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new GaugeController(chart, datasetIndex)

Parameters

Name Type
chart Chart<keyof ChartTypeRegistry, (null | number | ScatterDataPoint | BubbleDataPoint)[], unknown>
datasetIndex number

Overrides

DoughnutController.constructor

Properties

id

Static Readonly id: "gauge"

Overrides

DoughnutController.id

Methods

draw

draw(): void

Returns

void

Overrides

DoughnutController.draw


drawNeedle

drawNeedle(): void

Returns

void


drawValueLabel

drawValueLabel(): void

Returns

void


update

update(mode): void

Parameters

Name Type
mode "normal" | "none" | "hide" | "show" | "active" | "resize" | "reset"

Returns

void

Overrides

DoughnutController.update


updateElements

updateElements(elements, start, count, mode): void

Parameters

Name Type
elements Element<AnyObject, AnyObject>[]
start number
count number
mode "normal" | "none" | "hide" | "show" | "active" | "resize" | "reset"

Returns

void

Overrides

DoughnutController.updateElements