Feature Library

Live series: a live line that says live, paused or ended

<0.01 CPU ms
A still of the Live series: a live line that says live, paused or ended demo
Still
The live demo starts when it’s in view.Pause stops the picture · stop the readings: after 6 s it says no new data since the last · arrow keys on the chart read each reading · End the run

A live time-series line for a dashboard: readings are appended as they come (one at a time or a catch-up batch, out of order placed where they belong), a…

A live time-series line for a dashboard: readings are appended as they come (one at a time or a catch-up batch, out of order placed where they belong), a window of time is kept, and the chart says its state in words with a mark of its own shape: live, paused, no new data since a time, or ended. Nothing moves on its own, only new readings; a Pause button stops the picture. The newest reading is labelled at the line’s end, a threshold is a dashed rule, and crossing it is said once to a screen reader. The same window is one sentence (“Last 2 minutes: from 412 to 468, now 455, rising”) and a table of the latest readings, and arrow keys read the readings one by one. SVG, at most one redraw a frame.

What it costs a frame

<0.01 ms
GPU
not used
CPU, median
<0.01 ms
CPU, 95th pct
0.01 ms
Draw calls
0
Weight
Light

Measured 28 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 158, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged CPU <0.01–<0.01 ms). What ran: Measured Alone: a reading a second into a two-minute window with a threshold, the summary and the state worked out on each reading, the table closed. Phones: tiers are being measured next.

How steadily it runs on RTX 4060 Laptop · 13th Gen Intel(R) Core(TM) i9-13900H · reference

Typical frame ?
16.90 ms
1% low ?
44 fps
Varies by ?
±0.88 ms
All metricsRTX 4060 Laptop · 13th Gen Intel(R) Core(TM) i9-13900H · reference
p50p95p9916.02 ms25.57 ms +
How long each frame took. Most frames sit in the tall bars; a long tail to the right is hitching.

Frames run on a 60 Hz timer (a page demo), so most frames take about one tick, 16.7 ms: the spread around it is what matters.

Frames

Median (p50) ?
16.90 ms
p95 ?
17.79 ms
p99 ?
18.36 ms
Slowest ?
28.98 ms
Mean ?
16.97 ms
Standard deviation ?
0.88 ms
1% low ?
44 fps
0.1% low ?
35 fps
Hitches ?
0 of 600
Over budget ?
3 of 600

Main thread

Long tasks ?
0
Long frames ?
0
Event-loop delay ?
0.1 / 0.3 / 0.9 ms

Input

No input during this run.

Memory

JavaScript heap ?
30.7 → 31.6 MB
Growth ?
+0.92 MB

Browser

JavaScript a frame ?
0.13 ms
All tasks a frame ?
0.34 ms
Layout / style ?
0.02 / 0.01 ms
Main thread busy ?
2%

Garbage collection

Collections ?
0 (0 minor, 0 major)
Pauses ?
0.0 ms in all, longest 0.0

What it needs

Renders with
DOM and CSSPlain DOM and CSS: every current browser.
Your browser
Runs hereNo WebGPU needed
Depends on
NothingNo other packages
With an agent
install("live-series")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it up

What it’s for

  1. Requests, orders or sign-ups as they happen
  2. A service’s health on an operations board
  3. A sensor or a queue length over the last minutes
  4. A run that ends (a load test, a sale, a launch)

Pitfalls, in brief

  1. Import live-series.base.css, then live-series.css (or your own look): the base keeps the state line one height and the readout out of the layout; without it the chart jumps as its state changes.
  2. Call end() when the run is over, and let it go stale on its own when the feed is quiet: a chart that keeps saying live when nothing is arriving tells the reader the numbers are current when they are not.
  3. The window ends at the newest reading, not at the clock: with no new data the picture stays still (and says so), instead of sliding emptily to the left every second.
  4. Time comes from the reading (push(v, t)), in ms since the epoch: pass the time the value was measured, not the time it arrived, or a catch-up after a reconnect bunches up at the right edge.
  5. Use the page’s one formatter for the quantity (format): a figure tile saying “455 /s” above a chart labelled “455 requests a second” reads as two numbers.
4 more in brief
  1. Pause stops the picture, not the data: readings go on being kept, and Resume shows the window as it is now.
  2. It announces only state changes and threshold crossings, never every reading: a screen reader that is told each second hears nothing else.
  3. The value axis starts at zero for readings that are all zero or more (a count, a rate); a changing top would make small wobbles look like cliffs.
  4. The table is filled only while it is open, and holds the latest tableRows readings; for a whole run, export it with chart-access once the run has ended.
9 pitfalls in full, the hook-up guide, the module source and its tests come with the part.

Where it comes from

Written for the library. Fully custom code.

chartline charttime serieslive datastreamingreal timesliding windowstale datapausethresholdsvgaccessibilitydomno dependencies

Near it in the frame