A preset range for the bottom bar and Widget.setRange.

interface WidgetRange {
    count?: number;
    id: string;
    interval: string;
    label: string;
    unit: WidgetRangeUnit;
}

Properties

count?: number

How many units back, for session, month and year. Default 1.

id: string

Stable id: what setRange takes and range() returns.

interval: string

The interval the range shows. A host that does not offer it gets the nearest interval it does offer (rangeInterval).

label: string

The button's text.