View as Markdown

API reference: @salmonui/charts/gauge

GaugeTextinterface

import type { GaugeText } from '@salmonui/charts/gauge';
interface GaugeText {
    readonly gauge: string;
    readonly pointer: (gauge: string, n: number) => string;
    readonly ranges: string;
}

Built-in text of a Gauge (text prop; the gauge entry of a LocaleProvider catalog).

GaugeText members (3)
NameSignatureDescription
gaugereadonly gauge: string;

Name of the gauge and its meter when there is no title. Default "Gauge".

pointerreadonly pointer: (gauge: string, n: number) => string;

Name of pointer n (from 1) of a gauge with several unlabelled pointers.

rangesreadonly ranges: string;

Legend name without legend.title.