const aggregationFns: object;Defined in: fns/aggregationFns.ts:289
The built-in aggregation function registry.
Registering this full object opts out of tree-shaking: every built-in aggregation function ends up in your bundle. Prefer importing the aggregationFn_* functions you actually use and registering just those in the aggregationFns slot, or passing them directly to the aggregationFn column option.
count: <TFeatures, TData>(_columnId, leafRows) => number = aggregationFn_count;Counts the number of leaf rows in the group.
The column id is ignored because the result is based only on group size. This is a plain row-level function (not built with constructAggregationFn) because it never reads row values.
TFeatures extends TableFeatures
TData extends RowData
string
Row<TFeatures, TData>[]
number
extent: CreatedAggregationFn<any, any> = aggregationFn_extent;first: <TFeatures, TData>(columnId, leafRows) => unknown = aggregationFn_first;Returns the first leaf-row value for a grouped column.
This is a plain row-level function (not built with constructAggregationFn) because it only reads one positional value.
TFeatures extends TableFeatures
TData extends RowData
string
Row<TFeatures, TData>[]
unknown
last: <TFeatures, TData>(columnId, leafRows) => unknown = aggregationFn_last;Returns the last leaf-row value for a grouped column.
This is a plain row-level function (not built with constructAggregationFn) because it only reads one positional value.
TFeatures extends TableFeatures
TData extends RowData
string
Row<TFeatures, TData>[]
unknown
max: CreatedAggregationFn<any, any> = aggregationFn_max;mean: CreatedAggregationFn<any, any> = aggregationFn_mean;median: CreatedAggregationFn<any, any> = aggregationFn_median;min: CreatedAggregationFn<any, any> = aggregationFn_min;sum: CreatedAggregationFn<any, any> = aggregationFn_sum;unique: CreatedAggregationFn<any, any> = aggregationFn_unique;uniqueCount: CreatedAggregationFn<any, any> = aggregationFn_uniqueCount;Import individual aggregationFn_* functions instead for a smaller bundle. This export still works and is not going away in v9, but built-in name resolution (including aggregationFn: 'auto') only finds functions you register yourself.