Year Sparklines
A year sparkline is a compact calendar-style chart that shows data trends across an entire year. It consists of a 54×7 grid where each square represents a day. Columns represent weeks (1 to 54, left to right), and rows represent weekdays (Sunday to Saturday, top to bottom). Cell colors reflect value intensity, from minimum to maximum, using a gradient based on selected colors.
When to use year sparklines
- Tracking yearly trends: Visualize data over all 12 months to highlight seasonal patterns, growth, or declines.
- Comparing year-to-year performance: Show how metrics such as sales or site traffic change from one year to the next.
- Summarizing long-term behavior: Present large datasets in a clear, compressed view without showing daily details.
Create a year sparkline
- On the Insert tab, select Sparklines.
- Under Calendar Sparkline, select Insert Year Sparkline. The YearSparkline Dialog opens.
- Set the parameters.
- Click Ok. The sparkline is inserted into the selected cell.
Edit a year sparkline
- Select the year sparkline in your workbook.
- On the Sparkline tab, select Settings. The YearSparkline Dialog opens.
- Adjust the parameters, then click Ok.
- Copy and paste the sparkline cell to duplicate the configuration in another location, as needed.
Year sparkline parameters
The year sparkline formula supports the following formats:
=YEARSPARKLINE(year, dataRange, emptyColor, startColor, middleColor, endColor)
=YEARSPARKLINE(year, dataRange, colorRange)
| Parameter | Description |
|---|---|
| Data Range | Specifies a range where the first column contains dates and the second column contains values, such as A1:B400. |
| Location Range | Sets the cell where the sparkline will appear. |
| Year | Defines the year (four-digit format), such as 2024. |
| Month | Always sets the month to 1 (January). This value cannot be changed. |
| Empty Color | Sets the fill color for days with no value or a value of zero. |
| Start Color | Sets the fill color for the lowest data value in the year. |
| Middle Color | Sets the fill color for the midpoint between the minimum and maximum values. |
| End Color | Sets the fill color for the highest data value in the year. |
| Range Color | Accepts a cell range that defines color values directly. |