This example shows how you can summarize grouped data with Sparklines both in the data grid and in a standalone container.
The Customized Header demo shows how you can customize group header settings.
This demo takes the concept further by using a Sparkline to show trends in data groups by Country.
It also presents sales totals in a pie Sparkline that is placed outside the grid.
You can place a Sparkline in the group headers by using a Sparkline formula (defined as lineSparklineFormula in the source code) and then adding that formula to the groupHeader property in the column definition.
You can create a standalone Sparkline view by defining data (defined as percentagePie in the source code) and configuring the Sparkline.
Configure the Sparkline by initializing the Sparkline.PieSparkline plugin (defined as pieSparkline in the source code).