# GaugeProps (@salmonui/charts/gauge)

> The GaugeProps interface of @salmonui/charts/gauge.

Canonical: https://salmonui.dev/docs/reference/charts/gauge/GaugeProps

```ts
import type { GaugeProps } from '@salmonui/charts/gauge';
```

Entry index: https://salmonui.dev/docs/reference/charts/gauge (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/gauge.md).

## Reference

Kind: interface

```ts
interface GaugeProps extends GaugeDomProps {
    readonly shape?: GaugeShape | undefined;
    readonly orientation?: 'horizontal' | 'vertical' | undefined;
    readonly container?: GaugeContainer | undefined;
    readonly axes?: readonly GaugeAxis[] | undefined;
    readonly pointers?: readonly GaugePointer[] | undefined;
    readonly children?: ReactNode;
    readonly width?: number | undefined;
    readonly height?: number | undefined;
    readonly center?: readonly [
        number,
        number
    ] | undefined;
    readonly rangeGap?: number | undefined;
    readonly title?: string | undefined;
    readonly subtitle?: string | undefined;
    readonly description?: string | undefined;
    readonly locale?: string | undefined;
    readonly text?: Partial<GaugeText> | undefined;
    readonly palette?: readonly string[] | undefined;
    readonly legend?: boolean | GaugeLegendOptions | undefined;
    readonly hiddenRanges?: readonly string[] | undefined;
    readonly defaultHiddenRanges?: readonly string[] | undefined;
    readonly onHiddenRangesChange?: ((ids: readonly string[], event: GaugeChangeEvent) => void) | undefined;
    readonly tooltip?: boolean | {
        readonly targets?: readonly GaugeTooltipTarget[] | undefined;
        readonly render?: ((ctx: GaugeTooltipContext) => ReactNode) | undefined;
    } | undefined;
    readonly onPointerValueChange?: ((change: GaugePointerValueChange, event: GaugeChangeEvent) => void) | undefined;
    readonly onPointerValueCommit?: ((change: GaugePointerValueChange, event: GaugeChangeEvent) => void) | undefined;
    readonly onRangeChange?: ((change: GaugeRangeChange, event: GaugeChangeEvent) => void) | undefined;
    readonly animated?: boolean | undefined;
    readonly showDataTable?: boolean | undefined;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly ref?: Ref<GaugeApi> | undefined;
}
```

Members (29):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `shape` | `readonly shape?: GaugeShape \| undefined;` | optional |  |
| `orientation` | `readonly orientation?: 'horizontal' \| 'vertical' \| undefined;` | optional | Linear gauges: default `'horizontal'`. |
| `container` | `readonly container?: GaugeContainer \| undefined;` | optional | Linear gauges: the track drawn behind pointers (default `'normal'`). |
| `axes` | `readonly axes?: readonly GaugeAxis[] \| undefined;` | optional | Axes (default one axis 0 to 100); or `GaugeAxis` children, read when `axes` is absent. |
| `pointers` | `readonly pointers?: readonly GaugePointer[] \| undefined;` | optional | Pointers; or `GaugePointer` children, read when `pointers` is absent. |
| `children` | `readonly children?: ReactNode;` | optional | `GaugeAxis` and `GaugePointer` elements (the JSX form of `axes` and `pointers`). |
| `width` | `readonly width?: number \| undefined;` | optional | Drawing size in px; the SVG scales to its container through `viewBox`. |
| `height` | `readonly height?: number \| undefined;` | optional |  |
| `center` | `readonly center?: readonly [     number,     number ] \| undefined;` | optional | Circular center as fractions of the drawing (default `[0.5, 0.5]`). |
| `rangeGap` | `readonly rangeGap?: number \| undefined;` | optional | Gap between the axis line and inside ranges, in px (default 0). |
| `title` | `readonly title?: string \| undefined;` | optional |  |
| `subtitle` | `readonly subtitle?: string \| undefined;` | optional |  |
| `description` | `readonly description?: string \| undefined;` | optional | Replaces the automatic summary. |
| `locale` | `readonly locale?: string \| undefined;` | optional |  |
| `text` | `readonly text?: Partial<GaugeText> \| undefined;` | optional | Built-in text (over the nearest `LocaleProvider`'s `gauge` entry). |
| `palette` | `readonly palette?: readonly string[] \| undefined;` | optional | Data colors for ranges without a color. |
| `legend` | `readonly legend?: boolean \| GaugeLegendOptions \| undefined;` | optional | Range legend. |
| `hiddenRanges` | `readonly hiddenRanges?: readonly string[] \| undefined;` | optional |  |
| `defaultHiddenRanges` | `readonly defaultHiddenRanges?: readonly string[] \| undefined;` | optional |  |
| `onHiddenRangesChange` | `readonly onHiddenRangesChange?: ((ids: readonly string[], event: GaugeChangeEvent) => void) \| undefined;` | optional |  |
| `tooltip` | `readonly tooltip?: boolean \| {     readonly targets?: readonly GaugeTooltipTarget[] \| undefined;     readonly render?: ((ctx: GaugeTooltipContext) => ReactNode) \| undefined; } \| undefined;` | optional |  |
| `onPointerValueChange` | `readonly onPointerValueChange?: ((change: GaugePointerValueChange, event: GaugeChangeEvent) => void) \| undefined;` | optional | Called during a drag and per keyboard step with the proposed value. |
| `onPointerValueCommit` | `readonly onPointerValueCommit?: ((change: GaugePointerValueChange, event: GaugeChangeEvent) => void) \| undefined;` | optional | Called on release (and per keyboard step). |
| `onRangeChange` | `readonly onRangeChange?: ((change: GaugeRangeChange, event: GaugeChangeEvent) => void) \| undefined;` | optional | A draggable range end moved (drag frames, release, keyboard steps); ranges are reactive props, so apply it. |
| `animated` | `readonly animated?: boolean \| undefined;` | optional | Pointer entrance and update transition after hydration (default true); off under `prefers-reduced-motion`. |
| `showDataTable` | `readonly showDataTable?: boolean \| undefined;` | optional | Shows the accessible data table under the gauge. |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |
| `ref` | `readonly ref?: Ref<GaugeApi> \| undefined;` | optional |  |
