Box Plot Sparklines
Box plot sparklines are compact charts that summarize a dataset's distribution. They display key statistical values—minimum, maximum, median, and quartiles—using a rectangle with lines called whiskers.
When to use box plot sparklines
- Summarizing data distribution: Show how values are spread across a dataset and identify skewed data or outliers.
- Comparing multiple datasets: Compare groups or time periods to see differences in range, variability, median values.
- Spotting trends in variability: Monitor how the spread of data evolves over time, especially in large datasets.
Create a box plot sparkline
- On the Insert tab, select Sparklines.
- Under Other Sparkline, choose Insert BoxPlot 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 box plot sparkline
- Select the box plot sparkline in your workbook.
- On the Sparkline tab, select Settings. The BoxPlotSparkline Setting dialog opens.
- Adjust the parameters, then click Ok.
- Copy and paste the sparkline cell to duplicate the configuration in another location, as needed.
Box plot sparkline parameters
The box plot sparkline formula supports the following format:
=BOXPLOTSPARKLINE(points, boxPlotClass, showAverage, scaleStart, scaleEnd, acceptableStart, acceptableEnd, colorScheme, style, vertical)
| Parameter | Description |
|---|---|
| Points | Defines the range of cells containing values, such as A1:A4. Invalid or empty values are treated as 0. |
| BoxPlotClass | Selects the box plot type:
|
| ScaleStart | (Optional) Sets the minimum boundary, such as 1 or A6. Default is the lowest value in the dataset. |
| ScaleEnd | (Optional) Sets the maximum boundary, such as 8 or A7. Default is the highest value in the dataset. |
| AcceptableStart | (Optional) Defines where the acceptable line range begins, such as 3 or A8. Default is null. |
| AcceptableEnd | (Optional) Defines where the acceptable line range ends, such as 5 or A9. Default is null. |
| ColorScheme | Set the fill color for the box. Default is #D2D2D2. |
| Style | Selects the box plot style:
|
| ShowAverage | (Optional) Display an average line in the sparkline when selected. |
| Vertical | (Optional) Display the sparkline vertically when selected. |