the row type
Optional aggregatorA built-in aggregator by name ("sum", "avg", "count" …) or an own AggregatorIf. Default "sum".
Optional formatThe text of a result in a cell. Default: numbers with at most two decimals ("1,234.5"). Excel gets the raw value.
Optional labelThe header of its columns (with several values). Default: the name. Text only – never HTML.
Optional nameThe id of the value – part of the column properties and the name in PivotResult.getValue.
Default: "<aggregator>(<path>)", e.g. "sum(umsatz)"; for a function "<aggregator>(value<N>)".
Optional show„Show values as“ (since 1.1.95): "percentOfRowTotal" (each pivot row = 100 %), "percentOfColumnTotal",
"percentOfGrandTotal" or "percentOfParentTotal" (share of the parent row group). The cells then hold the
fraction (Excel: number with percent format), the text is a percentage; format is not used. Other modes of
ShowValuesAs don't apply to a pivot (the value is shown).
values: [{ value: "umsatz", showValuesAs: "percentOfRowTotal" }]
The value of a row: a property path ("umsatz", "order.total") or a function.
One value of a pivot table in full form: where the value of a row comes from, how it is aggregated, and how its columns are named. The short form is just the ValueAccessor (
"umsatz"= the sum of umsatz).Example
Since
1.1.94