Lab

Usage dashboard

Slant / Data

Usage at a glance: headline numbers, requests per day from two sources, twelve weeks of daily sessions, and tokens by model.

The theme follows the link: share a page with ?theme=moon.

Usage

  • Four <StatCard>s in a List, then a two-series <LineChart>, a <Heatmap> and a <PieChart>, each under a mono label.
  • The data is fixed, so the server and the browser draw the same thing; series take --sl-chart-1 to --sl-chart-5 in order.

Keyboard

Tabmoves from chart to chart; each is one tab stop
← / →walks the days of the line chart, the weeks of the grid, or the slices of the donut
↑ / ↓switches series in the line chart, or moves a day in the grid
Home / Endjumps to the first or last point
Escapehides the tooltip

Accessibility

  • Each chart is a named group with a text summary of its range, highs and lows, and a data table screen readers can browse.
  • Every step of the walk is spoken through a polite live region; legends name each series beside its colour, so colour is never the only cue.

Usage dashboard in React and SwiftUI.

Source

The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.