# GaugeRange (@salmonui/charts/gauge)

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

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

```ts
import type { GaugeRange } 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 GaugeRange {
    readonly id?: string | undefined;
    readonly from: number;
    readonly to: number;
    readonly width?: number | readonly [
        number,
        number
    ] | undefined;
    readonly position?: GaugeTickPosition | undefined;
    readonly color?: string | undefined;
    readonly label?: string | undefined;
    readonly draggable?: boolean | undefined;
    readonly step?: number | undefined;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id?: string \| undefined;` | optional |  |
| `from` | `readonly from: number;` |  |  |
| `to` | `readonly to: number;` |  |  |
| `width` | `readonly width?: number \| readonly [     number,     number ] \| undefined;` | optional | Band width in px, or `[start, end]` for a tapered band. Default 10. |
| `position` | `readonly position?: GaugeTickPosition \| undefined;` | optional |  |
| `color` | `readonly color?: string \| undefined;` | optional | Data color; default the categorical palette slot. |
| `label` | `readonly label?: string \| undefined;` | optional | Legend and tooltip text; default `from–to`. |
| `draggable` | `readonly draggable?: boolean \| undefined;` | optional | Both ends become slider thumbs; `onRangeChange` reports the moved range. |
| `step` | `readonly step?: number \| undefined;` | optional | Keyboard and drag step of the thumbs (default 1 % of the axis span). |
