View as Markdown

API reference: @salmonui/charts/gauge

GaugeAnnotationinterface

import type { GaugeAnnotation } from '@salmonui/charts/gauge';
interface GaugeAnnotation {
    readonly id?: string | undefined;
    readonly angle?: number | undefined;
    readonly radius?: number | undefined;
    readonly value?: number | undefined;
    readonly x?: number | undefined;
    readonly y?: number | undefined;
    readonly content: unknown;
    readonly rotate?: boolean | undefined;
    readonly label?: string | undefined;
}
GaugeAnnotation members (9)
NameSignatureDescription
idoptionalreadonly id?: string | undefined;
angleoptionalreadonly angle?: number | undefined;

Circular: angle in degrees (clockwise from 12 o'clock) and radius as a fraction of the axis radius.

radiusoptionalreadonly radius?: number | undefined;
valueoptionalreadonly value?: number | undefined;

Linear: position along the axis in data units, plus a pixel offset.

xoptionalreadonly x?: number | undefined;
yoptionalreadonly y?: number | undefined;
contentreadonly content: unknown;
rotateoptionalreadonly rotate?: boolean | undefined;
labeloptionalreadonly label?: string | undefined;

Tooltip text (tooltip.targets with 'annotation').