Documentation

@kanunilabs/pivotgrid-react


@kanunilabs/pivotgrid-react / PivotGroupInterval

Type Alias: PivotGroupInterval

PivotGroupInterval = "year" | "quarter" | "month" | "week" | "day" | "yearQuarter" | "yearMonth" | "monthWeek" | "numeric" | "custom"

Date grouping interval. 'week' is the ISO 8601 week, labelled with its week-year ("2026-W53"; weeks start on Monday). 'numeric' and 'custom' are accepted for compatibility and have no effect (the grid reports them): numeric bins are set with a number on PivotField.groupInterval.

The calendar intervals (B.121) keep each year apart and sort in date order: 'yearQuarter' ("2026-Q1", written with the locale's letter: "2026-Ç1" in Turkish), 'yearMonth' ("2026-01") and 'monthWeek' ("2026-01-1": one row of a Monday-first calendar; the row holding a month's 1st is its week 1, the previous month's days in it included, so 29 December 2025 is "2026-01-1").