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