# RangeSelectorProps (@salmonui/charts/range-selector)

> The RangeSelectorProps interface of @salmonui/charts/range-selector.

Canonical: https://salmonui.dev/docs/reference/charts/range-selector/RangeSelectorProps

```ts
import type { RangeSelectorProps } from '@salmonui/charts/range-selector';
```

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

## Reference

Kind: interface

```ts
interface RangeSelectorProps extends Omit<RangeModelInput, 'min' | 'max'> {
    readonly data?: readonly ChartDatum[] | undefined;
    readonly series?: readonly RangeSeries[] | undefined;
    readonly min?: number | Date | undefined;
    readonly max?: number | Date | undefined;
    readonly value?: RangeValue | undefined;
    readonly defaultValue?: RangeValue | undefined;
    readonly onValueChange?: ((value: RangeValue, event: RangeChangeEvent) => void) | undefined;
    readonly onValueCommit?: ((value: RangeValue, event: RangeChangeEvent) => void) | undefined;
    readonly snap?: boolean | 'interval' | undefined;
    readonly tooltip?: boolean | 'always' | {
        readonly format?: ChartFormat | ((value: number) => string);
    } | undefined;
    readonly periods?: readonly Period[] | undefined;
    readonly periodSelector?: boolean | {
        readonly position?: 'top' | 'bottom';
    } | undefined;
    readonly gridLines?: boolean | undefined;
    readonly ticks?: boolean | undefined;
    readonly name?: string | undefined;
    readonly disabled?: boolean | undefined;
    readonly 'aria-label'?: string | undefined;
    readonly text?: Partial<{
        readonly start: string;
        readonly end: string;
        readonly band: string;
        readonly range: (from: string, to: string) => string;
    }> | undefined;
    readonly width?: number | undefined;
    readonly height?: number | undefined;
    readonly onResize?: ((size: {
        readonly width: number;
        readonly height: number;
    }) => void) | undefined;
    readonly animated?: boolean | undefined;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly ref?: Ref<RangeSelectorApi> | undefined;
}
```

Members (37):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data?: readonly ChartDatum[] \| undefined;` | optional |  |
| `series` | `readonly series?: readonly RangeSeries[] \| undefined;` | optional |  |
| `min` | `readonly min?: number \| Date \| undefined;` | optional |  |
| `max` | `readonly max?: number \| Date \| undefined;` | optional |  |
| `value` | `readonly value?: RangeValue \| undefined;` | optional |  |
| `defaultValue` | `readonly defaultValue?: RangeValue \| undefined;` | optional |  |
| `onValueChange` | `readonly onValueChange?: ((value: RangeValue, event: RangeChangeEvent) => void) \| undefined;` | optional | During a drag, once per frame; also after keyboard and period changes. |
| `onValueCommit` | `readonly onValueCommit?: ((value: RangeValue, event: RangeChangeEvent) => void) \| undefined;` | optional | On release (and after every keyboard step). |
| `snap` | `readonly snap?: boolean \| 'interval' \| undefined;` | optional |  |
| `tooltip` | `readonly tooltip?: boolean \| 'always' \| {     readonly format?: ChartFormat \| ((value: number) => string); } \| undefined;` | optional |  |
| `periods` | `readonly periods?: readonly Period[] \| undefined;` | optional |  |
| `periodSelector` | `readonly periodSelector?: boolean \| {     readonly position?: 'top' \| 'bottom'; } \| undefined;` | optional |  |
| `gridLines` | `readonly gridLines?: boolean \| undefined;` | optional |  |
| `ticks` | `readonly ticks?: boolean \| undefined;` | optional |  |
| `name` | `readonly name?: string \| undefined;` | optional |  |
| `disabled` | `readonly disabled?: boolean \| undefined;` | optional |  |
| `aria-label` | `readonly 'aria-label'?: string \| undefined;` | optional |  |
| `text` | `readonly text?: Partial<{     readonly start: string;     readonly end: string;     readonly band: string;     readonly range: (from: string, to: string) => string; }> \| undefined;` | optional |  |
| `width` | `readonly width?: number \| undefined;` | optional |  |
| `height` | `readonly height?: number \| undefined;` | optional | Drawing height in px. Without it the height comes from CSS: the surface fills a root whose height CSS fixes, else 80 px. |
| `onResize` | `readonly onResize?: ((size: {     readonly width: number;     readonly height: number; }) => void) \| undefined;` | optional | Called after a measured size change. |
| `animated` | `readonly animated?: boolean \| undefined;` | optional | Entrance and update transitions (`@salmonui/charts/viz-animations.css`); default true. |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |
| `ref` | `readonly ref?: Ref<RangeSelectorApi> \| undefined;` | optional |  |
| `xField` | `xField?: string;` | optional, inherited |  |
| `yField` | `yField?: string;` | optional, inherited |  |
| `scale` | `scale?: "linear" \| "log" \| "time";` | optional, inherited |  |
| `interval` | `interval?: number \| TimeInterval;` | optional, inherited |  |
| `base` | `base?: number;` | optional, inherited |  |
| `format` | `format?: ChartFormat;` | optional, inherited |  |
| `formatLabel` | `formatLabel?: ((value: number) => string);` | optional, inherited |  |
| `labelPosition` | `labelPosition?: "inside" \| "outside";` | optional, inherited |  |
| `labelOverlap` | `labelOverlap?: "hide" \| "none" \| "rotate45" \| "rotate90" \| "stagger" \| "trim" \| "wrap";` | optional, inherited |  |
| `groupLabels` | `groupLabels?: { readonly unit: TimeUnit; readonly align?: "center" \| "start" \| undefined; readonly format?: ChartFormat \| undefined; };` | optional, inherited |  |
| `locale` | `locale?: string;` | optional, inherited |  |
| `timeZone` | `timeZone?: string;` | optional, inherited |  |
