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 skewness or outliers.
- Comparing multiple datasets: Compare groups or time periods to reveal differences in range, variability, and median values.
- Spotting trends in variability: Track how the spread of data changes 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 | Define the range of cells containing values, such as A1:A4. Invalid or empty values are treated as 0. |
| BoxPlotClass | Select the box plot type:
|
| ScaleStart | (Optional) Set the minimum boundary, such as 1 or A6. Default is the lowest value in the dataset. |
| ScaleEnd | (Optional) Set the maximum boundary, such as 8 or A7. Default is the highest value in the dataset. |
| AcceptableStart | (Optional) Define where the acceptable range begins, such as 3 or A8. Default: null. |
| AcceptableEnd | (Optional) Define where the acceptable range ends, such as 5 or A9. Default: null. |
| ColorScheme | Set the fill color for the box. Default: #D2D2D2. |
| Style | Select the box plot style:
|
| ShowAverage | (Optional) Display an average line in the sparkline. |
| Vertical | (Optional) Display the sparkline vertically. |