Derived group keys: value getters, date buckets and ranges
Rows can be grouped by a computed key instead of a raw value, for example by year, quarter or month of a date, or by numeric bands. A key formatter controls the label shown for each group.
Planned. This page shows the specification from issue #196. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Invoices grouped by Issue Date (year) > Issue Date (quarter).
Expected behavior
Group rows show the bucket labels and sort chronologically by the bucket, not alphabetically by the label.
Planned API surface
columns[].groupKeyGettercolumns[].groupKeyFormatterbuilt-in bucketers: dateYear, dateQuarter, dateMonth, numericRange(bands)Acceptance criteria
- Rows fall into exactly one bucket. (pending)
- Date bucketing honours the configured time zone. (pending)
- Bucket sort order uses the underlying key, not the formatted label. (pending)
- The same source column can appear at two levels with different bucketers. (pending)