From the contributor
How to use this sample
This sample uses SharePoint List Formatting to display weekly data as a heatmap calendar view.
Each row represents a week, and daily values are visualized with conditional background colors, making it easy to spot trends and high/low activity days.

Summary
- Each day (Monday–Sunday) is displayed in a horizontal weekly row.
- Cell background colors are based on the numeric values (higher values = darker shade).
- Values 0 or less are shown in gray, while values greater than 11 are displayed with the darkest green.
- The
WeekStartDatecolumn ensures proper ordering of weekly records. - The
Teamcolumn can be used to filter heatmaps by department.
View Requirements
Create a list with the following columns:
| Internal Name | Type |
|---|---|
| Title | Single line of text |
| WeekStartDate | Date and Time (Date only) |
| Monday | Number |
| Tuesday | Number |
| Wednesday | Number |
| Thursday | Number |
| Friday | Number |
| Saturday | Number |
| Sunday | Number |
| Team | Choice (e.g., Development, QA, Design, etc.) |
Sample Data
| Title | WeekStartDate | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday | Team |
|---|---|---|---|---|---|---|---|---|---|
| Week 1 | 2025-08-01T04:00:00Z | 0 | 0 | 0 | 0 | 10 | 0 | 0 | Development |
| Week 2 | 2025-08-04T04:00:00Z | 10 | 20 | 8 | 9 | 7 | 0 | 0 | Development |
| Week 4 | 2025-08-11T04:00:00Z | 12 | 11 | 8 | 3 | 10 | 0 | 0 | Development |
Sample
| Solution | Author(s) |
|---|---|
| weekly-heatmap.json | Sai Bandaru |
Version history
| Version | Date | Comments |
|---|---|---|
| 1.0 | August 19, 2025 | Initial release |
Disclaimer
THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
Additional Notes
- You can adjust the color scale thresholds in the JSON to match your data distribution.
- Supports both light and dark SharePoint themes.
- Works best in List view with
WeekStartDatesorted ascending.