📄️ Getting started
Categorical stats group records by a category and calculate either a count or sum for each category. For example, you can display payment counts by customer, order totals by status, or signups by source.
📄️ Defining categorical stats
A categorical stat repository supplies the records to aggregate, the field to group, the category labels, and the date column used by date-range filters.
📄️ Category providers
A category provider maps the value stored in getCategoryField() to a label displayed in graphs, exports, and the category selector.
📄️ Filters and model-specific stats
Filters let one categorical repository serve both a global stats page and pages scoped to a specific model, tenant, status, or other application value.