GroupedData

Data structure for grouped data transformation.

Props

The following table outlines the props for the GroupedData:

NameTypeDefaultDescription
aggregates
-

Aggregates for this group (sum, avg, min, max).

childLevels
number
-

Number of nesting levels below this group.

count
number
-

Number of records in this group.

field
string
-

Field name used for this grouping level.

flattedKey
string
-

Internal flattened key for nested groups, used for efficient lookups (e.g., "USA-NY").

flattedLevel
number
-

Internal flattened level for nested groups, used for efficient lookups and rendering optimizations.

items
(GroupedData<T> | T)[]
-

Nested groups or data rows within this group.

key
-

Group key value (unique identifier).

level
number
-

Nesting level (0=top-level, 1=nested, etc.).

records
T[]
-

Raw records in this group (before nested grouping).