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

Tickets by language
Solved by the agentHanded to a human
FA8612
EN649
AR416
JA387
ZH525
HI478
ES336
FR294
DE449
TR365
KO314
PT276

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
Maintenance downtime
Mon30
Tue20
Wed45
Thu10
Fri25
Sat0
Sun5

Important props

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],
]" />