Area Sparklines
Area sparklines are small charts that show trends over time or across categories. They fill the area below the line to emphasize the magnitude of values.
When to use area sparklines
- Visualizing overall volume or magnitude: Display both trends and totals—such as sales revenue—where larger shaded areas represent higher values.
- Comparing relative differences: Use the shaded area to highlight low or high periods, making patterns or outliers easier to identify.
- Emphasizing positive and negative values: Show how data moves above or below a baseline to highlight gains and losses.
Create an area sparkline
- On the Insert tab, select Sparklines.
- Under Line Sparkline, choose Insert Area 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 an area sparkline
- Select the area sparkline in your workbook.
- On the Sparkline tab, select Settings. The AreaSparkline Setting dialog opens.
- Adjust the parameters, then click Ok.
- Copy and paste the sparkline cell to duplicate the configuration in another location, as needed.
Area sparkline parameters
The area sparkline formula supports the following format:
=AREASPARKLINE(points, min, max, line1, line2, colorPositive, colorNegative)
| Parameter | Description |
|---|---|
| Line 1 | (Optional) Add a horizontal reference line at a specified value. Hidden by default. |
| Line 2 | (Optional) Add a second horizontal reference line. Hidden by default. |
| Minimum Value | (Optional) Set the minimum value for the sparkline. Default: lowest value. |
| Maximum Value | (Optional) Set the maximum value for the sparkline. Default: highest value. |
| Points | Define the range of cells containing values, such as D1:D6. Invalid or empty values are treated as 0. |
| Positive Color | Set the fill color for positive values. Default: #787878 (RGB: 120, 120, 120). |
| Negative Color | Set the fill color for negative values. Default: #CB0000 (RGB: 203, 0, 0). |