Documentation / @ripl/charts / createGaugeChart
Function: createGaugeChart()
createGaugeChart(
target,options):GaugeChart
Defined in: charts/src/charts/gauge.ts:527
Factory function that creates a new GaugeChart instance.
Parameters
| Parameter | Type |
|---|---|
target | string | Context<Element, Record<string, unknown>> | HTMLElement |
options | GaugeChartOptions |
Returns
Example
ts
createGaugeChart(target, {
value: 68,
min: 0,
max: 100,
label: 'CPU',
});