Summaries & Aggregations
Rowstack provides built-in support for calculating and displaying summaries at the bottom of each column. This is essential for financial data, inventory tracking, and any metric-driven application.
#Supported Aggregations
Rowstack currently supports the following aggregation types:
- Sum: Calculates the total for numeric values.
- Average: Calculates the arithmetic mean.
- Count: Counts the number of non-empty cells in the column.
#Enabling Summaries
Summaries are displayed in a sticky footer at the bottom of the table. You can enable or disable the footer globally:
const config = {
footer: {
enabled: true
}
};
#Configuring Aggregations
Each column can have its own summary type defined. Currently, users can select the summary type directly from the column header popup or view them in the footer.
#Summary Footer
The footer remains visible even as you scroll through large datasets, ensuring that your key metrics are always in view.
#Integration with Filtering
Aggregations in Rowstack are dynamic. If you apply a Filter, the summaries will automatically update to reflect only the currently visible (filtered) records.
#Integration with Grouping
When data is grouped, Rowstack can display summaries for each group, allowing you to see totals for specific categories at a glance.