LCLiveCharts

LiveChart

Complete Vue props and events reference for livecharts/vue

import { LiveChart } from "livecharts/vue";
import type { LiveChartEmits, LiveChartProps } from "livecharts/vue";

The component fills its parent. Set a height on the wrapper.

Props mirror livecharts/react. Vue-specific notes below.

Vue differences

ReactVue
classNameclass
style (CSSProperties)style (StyleValue)
onWindowChange prop@window-change only
onModeChange prop@mode-change only
onSeriesToggle prop@series-toggle only
onHover prop@hover only

Events

EventPayloadDescription
windowChangesecs: numberHorizon button selected
modeChange"line" | "candle"Mode toggle clicked
seriesToggleid: string, visible: booleanSeries chip toggled
hoverHoverPoint | nullScrub callback
<LiveChart
  :data="data"
  :value="value"
  :windows="windows"
  @window-change="horizon = $event"
  @mode-change="mode = $event"
/>

Mode chrome appears when you listen for @mode-change.

SSR

Needs a browser canvas — wrap in ClientOnly (Nuxt) or equivalent when using SSR. See Getting started.

Data

PropTypeDefaultDescription
dataLiveChartPoint[]requiredHistory points { time, value } (unix seconds)
valuenumberrequiredLatest scalar reading
seriesLiveChartSeries[]Multi-series; overrides data / value / color

Appearance

PropTypeDefaultDescription
theme"light" | "dark""dark"Surface / chrome mode
colorstring"#3b82f6"Accent CSS color
gridbooleantrueValue grid + labels
badgebooleantrueLive value badge at the tip
badgeVariant"default" | "minimal""default"Accent pill vs quiet pill
badgeTailbooleantrueBadge pointer toward the tip
fillbooleantrueUnder-line gradient
pulsebooleantrueTip glow pulse
lineWidthnumber2Stroke width (px)

Features

PropTypeDefaultDescription
momentumboolean | MomentumtrueAuto arrows, forced direction, or off
scrubbooleantrueCrosshair + tooltips on hover
exaggeratebooleanfalseTighten Y-range for small moves
showValuebooleanfalseLarge DOM value overlay
valueMomentumColorbooleanfalseTint overlay by momentum
degenboolean | DegenOptionsfalseParticles + shake on swings

State

PropTypeDefaultDescription
loadingbooleanfalseBreathing placeholder
pausedbooleanfalseFreeze scroll
emptyTextstring"No data to display"Empty-state copy
pauseWhenOffscreenbooleantrueStop rAF while offscreen

Time

PropTypeDefaultDescription
windownumber30Visible horizon (seconds)
windowsWindowOption[]Horizon button bar
windowStyle"default" | "rounded" | "text""default"Button bar style

Chrome slots

Named slots replace built-in toolbar pieces. See Chrome slots.

SlotScope
#windowswindows, activeSecs, setWindow, theme
#mode-togglemode, setMode, theme
#series-toggleseries, toggle, theme

Candlestick

PropTypeDefaultDescription
mode"line" | "candle""line"Active view + morph
candlesCandlePoint[]Closed OHLC candles
liveCandleCandlePointForming candle
candleWidthnumberBucket width (seconds)
lineModebooleanDeprecated — prefer mode

Accessibility

PropTypeDefaultDescription
a11ybooleantrueFocusable plot + keyboard scrub + live region
ariaLabelstring"Live chart"Accessible name (aria-label)

See Accessibility.

Advanced

PropTypeDefaultDescription
orderbookOrderbookDataStreaming bid/ask labels
referenceLineReferenceLineHorizontal threshold
formatValue(v: number) => stringv.toFixed(2)Badge / tooltips
formatTime(t: number) => stringHH:MM:SSCrosshair time
lerpSpeednumber0.08Display lerp rate
paddingPaddingChart insets
classstringCanvas container class
styleStyleValueCanvas container style

Related: Demo · Guides · LiveChartTransition · useLiveChartEngine · React API (shared engine behavior)

On this page