Skip to content

Function: addGauge()

ts
function addGauge(plot, opts): PatchesLayer;

Defined in: charts/gauge.ts:138

Build a radial gauge (track + value arc + needle) and add it as a PatchesLayer centered at (0,0), with an optional center label. Set the plot's equalAspect: true so it stays circular.

Parameters

ParameterType
plotPlot
optsGaugeOptions

Returns

PatchesLayer

MIT licensed. WebGL2 required.