To display total summaries, populate the summary.totalItems array with configuration objects. Each object should specify a column that supplies data for summary calculation and a summaryType—an aggregate function that should be applied to this data.
This demo illustrates the following total summaries:
Total number of orders
This summary uses the "count" summaryType.
Date of the first order
This summary uses the "min" summaryType and the customizeText function that formats the displayed summary value.
This summary uses the "sum" summaryType and the valueFormat property to format the summary value as currency.