Data
JS behaviour
Heatmap
A contribution calendar — or any numeric matrix; the cells light one by one, month and date labels follow the app locale’s calendar, and the same data ships as a hidden table.
Real scenarios
The component as it is used in a product — not a specimen grid.
Conversations answered, half a year
Twenty-six weeks of three teams — quiet weekends, one dark week of holidays, and the summary counted on the server with locale digits.
Conversations answered
Last 26 weeks · Tokyo, Berlin and São Paulo teams
923 conversations in 6 months
| Sun | Mon | Tue | Wed | Thu | Fri | Sat | |
|---|---|---|---|---|---|---|---|
| Week of Mar 29 | 0 | 1 | 0 | 7 | 11 | 7 | 5 |
| Week of Apr 5 | 5 | 8 | 14 | 10 | 9 | 3 | 0 |
| Week of Apr 12 | 2 | 0 | 1 | 3 | 4 | 5 | 1 |
| Week of Apr 19 | 5 | 10 | 10 | 0 | 12 | 12 | 2 |
| Week of Apr 26 | 3 | 8 | 0 | 4 | 1 | 2 | 0 |
| Week of May 3 | 0 | 10 | 3 | 10 | 13 | 12 | 4 |
| Week of May 10 | 3 | 16 | 8 | 5 | 0 | 3 | 1 |
| Week of May 17 | 0 | 4 | 4 | 0 | 8 | 8 | 3 |
| Week of May 24 | 3 | 0 | 18 | 8 | 12 | 12 | 2 |
| Week of May 31 | 1 | 1 | 7 | 0 | 0 | 0 | 1 |
| Week of Jun 7 | 2 | 5 | 12 | 14 | 7 | 16 | 4 |
| Week of Jun 14 | 3 | 8 | 0 | 10 | 0 | 2 | 1 |
| Week of Jun 21 | 0 | 2 | 1 | 10 | 6 | 7 | 0 |
| Week of Jun 28 | 4 | 13 | 10 | 14 | 12 | 2 | 2 |
| Week of Jul 5 | 1 | 1 | 0 | 0 | 6 | 0 | 2 |
| Week of Jul 12 | 3 | 8 | 12 | 11 | 17 | 11 | 2 |
| Week of Jul 19 | 0 | 6 | 5 | 1 | 4 | 3 | 0 |
| Week of Jul 26 | 1 | 5 | 4 | 7 | 0 | 16 | 2 |
| Week of Aug 2 | 4 | 16 | 9 | 9 | 6 | 9 | 0 |
| Week of Aug 9 | 0 | 0 | 0 | 2 | 2 | 7 | 3 |
| Week of Aug 16 | 1 | 15 | 14 | 11 | 12 | 0 | 4 |
| Week of Aug 23 | 1 | 5 | 7 | 0 | 1 | 0 | 2 |
| Week of Aug 30 | 0 | 2 | 0 | 9 | 11 | 12 | 4 |
| Week of Sep 6 | 4 | 6 | 13 | 8 | 2 | 3 | 0 |
| Week of Sep 13 | 1 | 0 | 2 | 8 | 3 | 8 | 3 |
| Week of Sep 20 | 5 | 11 | 9 | 0 | 9 | 8 | 2 |
The same block, as a load matrix
Rows are days, columns are opening hours — any numeric matrix works; the row and column names come in through labels.
Queue load by hour
| 09 | 11 | 13 | 15 | 17 | 19 | 21 | |
|---|---|---|---|---|---|---|---|
| Mon | 8 | 9 | 10 | 15 | 10 | 11 | 13 |
| Tue | 10 | 9 | 5 | 8 | 5 | 2 | 6 |
| Wed | 4 | 6 | 5 | 9 | 12 | 8 | 13 |
| Thu | 13 | 11 | 11 | 9 | 12 | 5 | 5 |
| Fri | 7 | 3 | 4 | 3 | 8 | 7 | 5 |
| Sat | 7 | 6 | 7 | 6 | 7 | 8 | 2 |
| Sun | 5 | 3 | 0 | 0 | 0 | 2 | 0 |
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| data | array | [] | Calendar-style: [['date' => '2026-09-01', 'value' => 4], …] — or a matrix: rows of plain numbers. |
| labels | array | [] | For the matrix mode: ['rows' => […], 'columns' => […]]. |
| weeks / weekStart / end | int | null / 0 / null | The week count, the week’s first day (0 Sunday, 1 Monday, 6 Saturday) and the end date. |
| unit / summary | string | null | What one cell counts (for the accessible description) and the summary line under the title. |
Snippet
<x-nx::heatmap title="گفتوگوهای پاسخدادهشده" unit="گفتوگو" :weeks="26" :data="$heat"
summary="۴٬۲۱۸ گفتوگو در ۶ ماه" />