View as Markdown

API reference: @salmonui/charts/gauge

GaugeLabelsinterface

import type { GaugeLabels } from '@salmonui/charts/gauge';
interface GaugeLabels {
    readonly position?: 'inside' | 'outside' | undefined;
    readonly rotate?: boolean | undefined;
    readonly hide?: 'first' | 'last' | undefined;
    readonly showLast?: boolean | undefined;
    readonly overlap?: 'hide' | 'show' | undefined;
    readonly format?: Intl.NumberFormatOptions | undefined;
    readonly hidden?: boolean | undefined;
}
GaugeLabels members (7)
NameSignatureDescription
positionoptionalreadonly position?: 'inside' | 'outside' | undefined;
rotateoptionalreadonly rotate?: boolean | undefined;

Rotate labels along the arc (circular).

hideoptionalreadonly hide?: 'first' | 'last' | undefined;
showLastoptionalreadonly showLast?: boolean | undefined;

Label the maximum even when it is not on the interval.

overlapoptionalreadonly overlap?: 'hide' | 'show' | undefined;

'hide' (default) drops labels that would overlap the previous one.

formatoptionalreadonly format?: Intl.NumberFormatOptions | undefined;
hiddenoptionalreadonly hidden?: boolean | undefined;