Pie Sparklines
Pie sparklines are small charts that show how a total value is divided among categories. Each slice represents the relative contribution of a category. They are useful when you need a quick, compact visual for comparing proportions without using a full-sized pie chart.
When to use pie sparklines
- Displaying proportions: Show how each category contributes to a total, with each slice sized proportionally.
- Simplifying comparisons: Compare parts of a whole across rows or time periods without using a full-sized chart.
- Enhancing readability: Provide a compact, visual summary of distribution without showing raw numbers.
Create a pie sparkline
- On the Insert tab, select Sparklines.
- Under Pie Sparkline, select Insert Pie Sparkline. The Create Sparklines dialog opens.
- In Data Range, select a continuous range of cells (in the same row or column).
- In Location Range, select the cell where the sparkline will appear.
- Click Ok. The sparkline is inserted into the selected cell.
Edit a pie sparkline
- Select the pie sparkline in your workbook.
- On the Sparkline tab, select Settings. The PieSparkline Setting dialog opens.
- Set the parameters, then click Ok.
- Copy and paste the sparkline cell to duplicate the configuration in another location, as needed.
Pie sparkline parameters
The pie sparkline formula supports the following format:
=PIESPARKLINE(Percentage,color1,color2,...)
| Parameter | Description |
|---|---|
| Percentage | Defines the values used to determine slice size:
|
| Color1 to ColorN | (Optional) Sets the color for each slice:
|