Неделя запускаСкидка 50% на год AuteurТарифы
Все компоненты

Live line Бесплатно

A chart for numbers that change while you watch. The line eases to each new value, the scale glides, the head breathes, and you can scrub back through time.

Открыть в редакторе
ETH$2,442.54+12.54 (0.52%)
Зарегистрируйтесь бесплатно, чтобы скачать

Подходит для

  • Prices, live metrics, sensor readings, anything that updates every second or so.
  • Dashboards where the latest value matters most and the history gives it context.

Не подходит для

  • Comparing several series. Use a static chart with a legend.
  • Data that updates once a day. Let a plain chart sit still.

Пропсы

Прочитаны прямо из TypeScript компонента, поэтому всегда актуальны.

ПропсТипПо умолчанию
dataОбязательныйLivePoint[]Points so far, oldest first. `time` is in seconds (Date.now() / 1000).
valueОбязательныйnumberThe latest value. The line eases toward it.
colorstring
gridbooleantrue
tagbooleanThe value tag on the right edge.true
fillbooleantrue
pulsebooleanThe head's slow ring.true
lineWidthnumber2
momentumbooleanTint the head and tag green or red by which way the value is heading.true
scrubbooleanHover or drag to read any moment.true
windownumberSeconds of history on screen.30
windowsLiveWindow[]
onWindowChange(secs: number) => void
windowStyle'pill' | 'segment' | 'text''pill'
loadingbooleanA soft breathing line while you wait for data.false
pausedbooleanStop scrolling. When it resumes it catches up with the present.false
emptyTextstring'Nothing yet'
referenceLiveReference
formatValue(v: number) => string(v) => v.toFixed(2)
formatTime(t: number) => stringclock
easenumberHow quickly the line follows a new value, 0 to 1.0.08
onScrub(p: LivePoint | null) => void
classNamestring
styleCSSProperties

Лучше с навыком

Добавьте навык агенту, и он будет использовать Live line так, как задумано.

Colour and hierarchyБесплатно

Picks colours that keep it readable and calm, in light and dark.

$npx velvo skill colour-and-hierarchy
Открыть навык
Product demosБесплатно

Turns it into a demo for your landing page that reads as the real product.

$npx velvo skill product-stage
Открыть навык

Specs

Category
Media
Tier
Free
Built with
React and TypeScript
Files
14
Size
312 KB
Needs
framer-motion
Install
npx velvo add live-line
Works with
Next.js, Vite, Remix, Expo web

Licence

Velvo free licence
  • Personal and commercial use
  • Change it however you like
  • No credit needed

Not for resale as a component or a UI kit.

Tags

mediacharttimefreereact
ДальшеSketchpad