Pivot Tables Component
Embed interactive pivot tables for data analysis and cross-tabulation using the rb-pivot-table web component.
Table of Contents
Overview
The <rb-pivot-table> component renders an interactive pivot table for multi-dimensional data analysis. Users can drag and drop fields, change aggregations, and filter data.

FlowKraft Apps: The FlowKraft Frontend App has this component pre-configured. Just paste your embed code from the Usage tab—no script setup required. See FlowKraft Frontend App for details.
Basic Usage
<rb-pivot-table
report-code="sales-analysis"
api-base-url="http://localhost:9090/api/jobman/reporting">
</rb-pivot-table>Attributes
| Attribute | Required | Description |
|---|---|---|
report-code | Yes | Report folder name configured in ReportBurster |
api-base-url | Yes | Base URL for API calls |
DSL Configuration
Pivot table configuration is defined in ReportBurster using a Groovy DSL.
Basic Structure
pivotTable {
rows 'Region', 'Product'
cols 'Quarter'
vals 'Revenue'
aggregatorName 'Sum'
rendererName 'Table'
}Configuration Reference
| Property | Description | Example Values |
|---|---|---|
rows | Row dimensions | 'Region', 'Product' |
cols | Column dimensions | 'Quarter', 'Year' |
vals | Value fields to aggregate | 'Revenue', 'Quantity' |
aggregatorName | Aggregation function | 'Sum', 'Count', 'Average' |
rendererName | Display type | 'Table', 'Table Heatmap' |
rowOrder | Row sorting | 'key_a_to_z', 'value_z_to_a' |
colOrder | Column sorting | 'key_a_to_z', 'value_z_to_a' |
Aggregators
Count- Count of recordsCount Unique Values- Distinct countSum- Total of valuesInteger Sum- Rounded sumAverage- Mean valueMedian- Middle valueMinimum- Lowest valueMaximum- Highest valueSum as Fraction of Total- Percentage of totalSum as Fraction of Rows- Percentage of rowSum as Fraction of Columns- Percentage of column
Renderers
Table- Standard tableTable Heatmap- Colored by valueTable Col Heatmap- Colored by columnTable Row Heatmap- Colored by row
Value Filters
pivotTable {
rows 'Region'
cols 'Quarter'
vals 'Revenue'
aggregatorName 'Sum'
valueFilter {
filter 'Status', exclude: ['Cancelled', 'Pending']
}
}Hidden Attributes
pivotTable {
rows 'Region'
cols 'Quarter'
vals 'Revenue'
hiddenAttributes 'InternalID', 'CreatedAt'
hiddenFromAggregators 'Region', 'Quarter'
}Examples
Sales by Region and Product
pivotTable {
rows 'Region', 'Product'
cols 'Quarter'
vals 'Revenue'
aggregatorName 'Sum'
rendererName 'Table'
rowOrder 'key_a_to_z'
}Order Analysis with Filtering
pivotTable {
rows 'Category'
cols 'Year', 'Month'
vals 'OrderCount'
aggregatorName 'Sum'
valueFilter {
filter 'Status', exclude: ['Cancelled']
}
}Heatmap View
pivotTable {
rows 'Department'
cols 'Month'
vals 'Expenses'
aggregatorName 'Sum'
rendererName 'Table Heatmap'
}