Skip to content

charton API


charton API / @chart-on/core / index / GroupingOptions

Interface: GroupingOptions ​

Defined in: packages/core/src/chart.ts:736

The grouping chart option.

Properties ​

mode ​

mode: "pixel" | "calendar"

Defined in: packages/core/src/chart.ts:741

'pixel': group by powers of two so a bucket is about two device pixels wide. 'calendar': group by calendar periods (see steps).


steps? ​

optional steps?: Interval[]

Defined in: packages/core/src/chart.ts:743

Calendar mode: the periods to pick from, finest that fits wins. Default 1m, 5m, 15m, 1h, 4h, 1d, 1w, 1M.