Skip to content

Interface: GaugeOptions

Defined in: charts/gauge.ts:94

Options for addGauge.

Properties

color?

ts
optional color?: string;

Defined in: charts/gauge.ts:103

Value-arc color when no thresholds apply. Default blue.


endAngle?

ts
optional endAngle?: number;

Defined in: charts/gauge.ts:109

Angle of the sweep end, degrees. Default -20.


label?

ts
optional label?: string | false;

Defined in: charts/gauge.ts:113

Center label text; defaults to the numeric value. Pass false to omit.


max?

ts
optional max?: number;

Defined in: charts/gauge.ts:99

Value at the end of the sweep. Default 100.


min?

ts
optional min?: number;

Defined in: charts/gauge.ts:97

Value at the start of the sweep. Default 0.


name?

ts
optional name?: string;

Defined in: charts/gauge.ts:114


needleColor?

ts
optional needleColor?: string;

Defined in: charts/gauge.ts:111

Needle color. Default a dark slate.


renderType?

ts
optional renderType?: RenderType;

Defined in: charts/gauge.ts:116

Buffer-usage hint; set "dynamic" when streaming. Default "static".


startAngle?

ts
optional startAngle?: number;

Defined in: charts/gauge.ts:107

Angle of the sweep start, degrees. Default 200.


thresholds?

ts
optional thresholds?: GaugeThreshold[];

Defined in: charts/gauge.ts:101

{value,color} bands; the value arc takes the color of the highest one reached.


trackColor?

ts
optional trackColor?: string;

Defined in: charts/gauge.ts:105

Background-track color. Default a muted gray.


value

ts
value: number;

Defined in: charts/gauge.ts:95

MIT licensed. WebGL2 required.