Small charts
Numbers drawn without a chart library: sparklines in rows, status strips, rings and heatmaps.
Overview
When to use
- A trend beside every row of a list or table (sparkline).
- Histories of states as strips of cells: uptime per day, the last runs of a route, a rollout's stages (status tracker).
- One share of a whole that reads at a glance: battery, progress to a goal, capacity (radial).
- Two categories crossed, shaded by how much: incidents by time of week, presence by zone (heatmap).
Use something else
- Exact values over time, or counts per category: the Chart component's line, area and bar patterns.
- Headline numbers with their week: Stats.
Which one: MetricCard, Meter, ShareBar, BarList or Chart
Blocks
Robot list with trend
Each robot row with its last 12 hours of battery as a sparkline and the value now.
npx shadcn add @syncrobotic/sparkline-robot-list 1280px390px
Table with a trend column
A table where each row's last 14 days are mini bars on one shared scale.
npx shadcn add @syncrobotic/sparkline-table 1280px390px
Uptime over 30 days
One cell a day per robot: grey where it ran, colour only on degraded and down days, with a tooltip per day.
npx shadcn add @syncrobotic/status-tracker-uptime 1280px390px
Run history
The last 20 runs of each route as a strip, newest on the right, with the pass count.
npx shadcn add @syncrobotic/status-tracker-runs 1280px390px
Rollout stages
A rollout as stage lanes: finished stages checked, the running one in progress, later ones waiting.
npx shadcn add @syncrobotic/status-tracker-rollout 1280px390px
Battery rings
Battery per robot as rings, neutral until low or critical, the number always in the middle.
npx shadcn add @syncrobotic/radial-chart-battery 1280px390px
Progress to a goal
One large ring with the share of the plan done and the breakdown beside it in words.
npx shadcn add @syncrobotic/radial-chart-goal 1280px390px
Capacity rings
Several shares of capacity as concentric rings in series colours, each named with its value.
npx shadcn add @syncrobotic/radial-chart-capacity 1280px390px
Time of week
Days by 2-hour slots in one sequential hue, the busiest slot named, a tooltip per cell.
npx shadcn add @syncrobotic/heatmap-week-hours 1280px390px
Zones by time of day
Zones by time slots with the value written in every cell, so the colour only groups.
npx shadcn add @syncrobotic/heatmap-zones 1280px390px
Usage rules
- Neutral until a value is abnormal: normal is grey, only degraded, failed, down or low is coloured, and the word says so beside the shape.
- Blue only for a stage that is running now.
- Sparklines, rings and status strips write their numbers in words too (99.2 % up, 18/20, 14 %); rows that are compared share one scale.
- A heatmap is one hue, light to dark (darker always means more), with a legend for the scale, the extreme named in words, and a table view.