Data
JS behaviour
Dot matrix chart
Each column is a stack of dots lit up to its total; series stack in fixed colour order, and one dot is a round unit that fits the tallest column.
Real scenarios
The component as it is used in a product — not a specimen grid.
Tickets by language, who closed them
Twelve languages, two series stacked in a fixed colour order — the agent’s share sits under the human handoff. One dot is ten tickets; a full column means a busy language.
Tickets by language
This week
- Solved by the agent
- Handed to a human
Each dot is 10
| Solved by the agent | Handed to a human | |
|---|---|---|
| FA | 86 | 12 |
| EN | 64 | 9 |
| AR | 41 | 6 |
| JA | 38 | 7 |
| ZH | 52 | 5 |
| HI | 47 | 8 |
| ES | 33 | 6 |
| FR | 29 | 4 |
| DE | 44 | 9 |
| TR | 36 | 5 |
| KO | 31 | 4 |
| PT | 27 | 6 |
528 agent-solved · 81 handed over
A single series, one dot = ten minutes
data instead of series+labels, and unit pinning what a dot means — the week’s maintenance windows at a glance.
Maintenance downtime
Each dot is 10
| Maintenance downtime | |
|---|---|
| Mon | 30 |
| Tue | 20 |
| Wed | 45 |
| Thu | 10 |
| Fri | 25 |
| Sat | 0 |
| Sun | 5 |
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| data / series + labels | array | null / [] | One series: data => ['Mon' => 42, …]; several: labels => […], series => [['name' => …, 'values' => […]]]. |
| rows / unit | int | 10 / null | Dots per column and what one dot counts (default: a round number that fits the tallest column). |
| title / subtitle | string | null | The card’s title and subtitle. |
Snippet
<x-nx::dot-matrix-chart title="تیکتها به تفکیک زبان" :labels="$codes" :series="[
['name' => 'حلشده توسط ایجنت', 'values' => $solved],
['name' => 'واگذار به انسان', 'values' => $handed],
]" />