CHART_RANGE_SELECTOR_DEFAULT_BUTTONS

const
Components

Default buttons shown in the OrigamChart range-selector toolbar when rangeSelector.enabled is true without a custom buttons array. Covers common time-series windows (1w, 1m, 3m, 6m, 1y, all).

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Entries

Values

All entries in this constant. Click a value to copy it to clipboard.

{ label: '1w', count: 7 }
Last 7 data points.
{ label: '1m', count: 30 }
Last 30 data points.
{ label: '3m', count: 90 }
Last 90 data points.
{ label: '6m', count: 180 }
Last 180 data points.
{ label: '1y', count: 365 }
Last 365 data points.
{ label: 'all', fraction: 1 }
Full dataset — fraction: 1 means 100% of available data.

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamChart

Usage

Examples

Ready-to-paste code snippets using this constant.

Enabling the default range selector

typescript