Skip to content

PivotRow

Since v0.1.1

PropertyTypeDescription
rowKeystringUnique key for this row (hierarchical path)
rowLabelstringDisplay label for this row
depthnumberDepth level (0 = top level)
valuesRecord<string, number | unknown>Aggregated values by column key
total?numberRow total across all columns
isGroupbooleanWhether this row has sub-groups (i.e. remainingFields.length > 0 in the engine). NOTE: With a single rowGroupFields, grouped rows have isGroup: false because there are no further levels to expand. Use multi-level grouping when testing group-related logic like getAllGroupKeys().
children?PivotRow[]Child rows (for hierarchical grouping)
rowCount?numberNumber of data rows in this group
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt