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

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

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

```ts
import type { Period } 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 Period {
    readonly id: string;
    readonly unit: PeriodUnit;
    readonly count?: number | undefined;
    readonly label: string;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `unit` | `readonly unit: PeriodUnit;` |  |  |
| `count` | `readonly count?: number \| undefined;` | optional | Number of units (ignored by `ytd` and `all`). Default 1. |
| `label` | `readonly label: string;` |  |  |
