charton API / @chart-on/ui / index / rangePresets
Function: rangePresets()
rangePresets(
list?,options?):ToolbarItemLayout&object
Defined in: ui/src/bottombar.ts:161
Range presets as chips that set the visible span, or one menu in the shell's compact layout. Picking one calls onRange (e.g. to switch to a fitting interval and reload data), then shows the span. A custom item, so it is hidden rather than listed when the bar runs out of room.
Parameters
list?
readonly RangeOption[] = defaultRanges
options?
onRange?
(range, chart) => void