Semana de lanzamiento50 % de descuento en un año de AuteurVer planes
EspaciosHazte Pro
Blueprint · N.º 04

Live data should breathe

A chart that updates every second is a different object from one that updates once. Notes on easing, a scale that glides, and a head that shows it is alive.

· 5 min de lectura · Las notas están escritas en inglés.

Most charts are made to be read once: you load the page, the line is there, you take in the shape. A live chart is something you watch. It changes while your eyes are on it, and every change is either calm or a jolt.

ETH$2,442.54+12.54 (0.52%)
Fig. 1A price that moves like a real one. Hover or drag across it to read any moment; switch the range in the corner.

Never snap

The first rule is the simplest: when a new value arrives, the line doesn't jump to it. It eases there, closing about eight percent of the gap each frame. That one change is the difference between a chart that flickers and one that feels like it's following something real.

Snaps
Eases
Fig. 2The same numbers, twice. The left one snaps to each value. The right one eases.

The scale matters as much as the line. When a value breaks out of the range, a naive chart rescales instantly and every point on screen jumps to a new height. Easing the range too means the whole picture settles into its new frame instead.

Show that it's alive

A static chart and a live one look identical in a screenshot, so the live one needs a tell. Here it's a soft ring that leaves the head every 1.6 seconds, a tag on the right edge that reads the value at the height of the line, and a tint: green when it's heading up, red when down, the accent when it's flat.

Follow
8% of the gap per frame, frame-rate independent
Range
glides at 10% per frame, 18% padding
Head ring
every 1.6 s, off with reduced motion
Drawing
one canvas; stops when off screen
Scrub
nearest point, value and time
If it doesn't move, it's a report. If it moves badly, it's a slot machine.

Two more decisions you won't notice: the chart stops drawing when it scrolls out of view, so a dashboard of twelve costs nothing, and it reads its colours from the page, so it follows light and dark without a prop.

Hecho en esta nota

Cada figura de arriba es un componente de Velvo. Añádelos a tu app y dale a tu agente las skills que hay detrás.

$npx velvo add live-line text-roll
Desbloquear con Pro
Más notasA toolbar that changes shape