You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The component fills its parent container. Set a height on the parent, then pass a growing data array and the latest value. Liveline handles the interpolation and drawing loop internally.
Props
Any standard div attributes such as class, style, id, data-*, or aria-* are forwarded to the root container.
Data
Prop
Type
Default
Description
data
LivelinePoint[]
required
Array of { time, value } points
value
number
required
Latest value
Appearance
Prop
Type
Default
Description
theme
'light' | 'dark'
'dark'
Color scheme
color
string
'#3b82f6'
Accent color used to derive the palette
grid
boolean
true
Y-axis grid lines and labels
badge
boolean
true
Value pill tracking the chart tip
badgeVariant
'default' | 'minimal'
'default'
Accent badge or neutral badge
badgeTail
boolean
true
Pointed tail on the badge pill
fill
boolean
true
Gradient under the curve
pulse
boolean
true
Pulsing ring on the live dot
lineWidth
number
2
Main line width in pixels
Features
Prop
Type
Default
Description
momentum
boolean | Momentum
true
Dot glow and arrows. true auto-detects, or pass 'up' | 'down' | 'flat'
scrub
boolean
true
Crosshair scrubbing on hover
exaggerate
boolean
false
Tight Y-axis range so smaller moves fill more height
showValue
boolean
false
Large live value overlay
valueMomentumColor
boolean
false
Colors the value overlay by momentum
degen
boolean | DegenOptions
false
Particle bursts and shake on strong swings
Candlestick
Prop
Type
Default
Description
mode
'line' | 'candle'
'line'
Chart type
candles
CandlePoint[]
—
Committed OHLC candles
candleWidth
number
—
Seconds per candle
liveCandle
CandlePoint
—
Current in-progress candle
lineMode
boolean
false
Morph candles toward a line view
lineData
LivelinePoint[]
—
Tick-level data for density blending in line mode
lineValue
number
—
Current tick value for line mode
onModeChange
(mode) => void
—
Callback for the built-in candle/line toggle
When mode="candle", pass candles, liveCandle, and candleWidth. If you also pass lineMode, lineData, and lineValue, Liveline smoothly morphs candle bodies into a denser line representation.
Multi-series
Prop
Type
Default
Description
series
LivelineSeries[]
—
Overlapping line series { id, data, value, color, label? }
onSeriesToggle
(id, visible) => void
—
Called when a built-in series chip is toggled
seriesToggleCompact
boolean
false
Dot-only series toggle chips
When series is provided, Liveline disables single-series badge, fill, and momentum affordances automatically.
State
Prop
Type
Default
Description
loading
boolean
false
Shows the breathing loading line
paused
boolean
false
Freezes scrolling while preserving visual continuity