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
Conversations answered
SunMonTueWedThuFriSat
Week of Mar 2901071175
Week of Apr 5581410930
Week of Apr 122013451
Week of Apr 1951010012122
Week of Apr 263804120
Week of May 301031013124
Week of May 1031685031
Week of May 170440883
Week of May 243018812122
Week of May 311170001
Week of Jun 72512147164
Week of Jun 1438010021
Week of Jun 2102110670
Week of Jun 2841310141222
Week of Jul 51100602
Week of Jul 1238121117112
Week of Jul 190651430
Week of Jul 2615470162
Week of Aug 241699690
Week of Aug 90002273
Week of Aug 1611514111204
Week of Aug 231570102
Week of Aug 30020911124
Week of Sep 646138230
Week of Sep 131028383
Week of Sep 2051190982

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

Queue load by hour
09111315171921
Mon891015101113
Tue10958526
Wed465912813
Thu13111191255
Fri7343875
Sat7676782
Sun5300020

Important props

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="۴٬۲۱۸ گفت‌وگو در ۶ ماه" />