Skip to content
Design System
GitHub

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.

BetaExample: copy and adaptA reference composition with sample data, never wired to an API: copy it and adapt it to your screen.
Install
npx shadcn add @syncrobotic/sparkline-robot-list

Table with a trend column

A table where each row's last 14 days are mini bars on one shared scale.

BetaExample: copy and adaptA reference composition with sample data, never wired to an API: copy it and adapt it to your screen.
Install
npx shadcn add @syncrobotic/sparkline-table

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.

BetaExample: copy and adaptA reference composition with sample data, never wired to an API: copy it and adapt it to your screen.
Install
npx shadcn add @syncrobotic/status-tracker-uptime
Built from

Run history

The last 20 runs of each route as a strip, newest on the right, with the pass count.

BetaExample: copy and adaptA reference composition with sample data, never wired to an API: copy it and adapt it to your screen.
Install
npx shadcn add @syncrobotic/status-tracker-runs

Rollout stages

A rollout as stage lanes: finished stages checked, the running one in progress, later ones waiting.

BetaExample: copy and adaptA reference composition with sample data, never wired to an API: copy it and adapt it to your screen.
Install
npx shadcn add @syncrobotic/status-tracker-rollout
Built from

Battery rings

Battery per robot as rings, neutral until low or critical, the number always in the middle.

BetaExample: copy and adaptA reference composition with sample data, never wired to an API: copy it and adapt it to your screen.
Install
npx shadcn add @syncrobotic/radial-chart-battery

Progress to a goal

One large ring with the share of the plan done and the breakdown beside it in words.

BetaExample: copy and adaptA reference composition with sample data, never wired to an API: copy it and adapt it to your screen.
Install
npx shadcn add @syncrobotic/radial-chart-goal
Built from

Capacity rings

Several shares of capacity as concentric rings in series colours, each named with its value.

BetaExample: copy and adaptA reference composition with sample data, never wired to an API: copy it and adapt it to your screen.
Install
npx shadcn add @syncrobotic/radial-chart-capacity
Built from

Time of week

Days by 2-hour slots in one sequential hue, the busiest slot named, a tooltip per cell.

BetaExample: copy and adaptA reference composition with sample data, never wired to an API: copy it and adapt it to your screen.
Install
npx shadcn add @syncrobotic/heatmap-week-hours

Zones by time of day

Zones by time slots with the value written in every cell, so the colour only groups.

BetaExample: copy and adaptA reference composition with sample data, never wired to an API: copy it and adapt it to your screen.
Install
npx shadcn add @syncrobotic/heatmap-zones
Built from

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.