LCLiveCharts

Introduction

Real-time animated canvas charts with a framework-agnostic engine

LiveCharts draws a live line that moves smoothly as new data arrives. One <canvas>, one requestAnimationFrame loop, opt-in features on top.

It is built for streaming feeds — prices, sensors, heart rate, prediction markets — where the chart must feel continuous even when ticks arrive irregularly.

Why LiveCharts

Most charting libraries are either too heavy for a simple live feed, or too rigid to feel alive. LiveCharts does one job well:

  • Interpolate toward new values at ~60fps (lerpSpeed, default 0.08)
  • Snap the Y-axis outward instantly when data exceeds the range (never clip the line)
  • Keep chrome (badge, grid, value overlay) in the same motion language

Everything else — momentum arrows, orderbook labels, candlesticks, multi-series, particles — is opt-in.

Bundle size

Separate entry points keep unused frameworks out of your app. Sizes below are measured automatically on each livecharts build (ESM, gzip -9). React / Vue are peers and are not counted.

ImportMinifiedGzipNotes
livecharts134 KB29 KBEngine + theme helpers
livecharts/react159 KB34 KBReact binding (engine inlined; react is peer)
livecharts/vue164 KB35 KBVue binding (engine inlined; vue is peer)
livecharts/data2.8 KB0.9 KBHelpers only — no canvas engine

Measured from published ESM build (ESM dist, gzip -9; framework peers not included). v0.1.2 · React / Vue are peer dependencies and are not included.

Install

npm install livecharts

Package layout

ImportWhat you get
livecharts/react<LiveChart />, LiveChartTransition, useLiveChartEngine
livecharts/vue<LiveChart />, LiveChartTransition, useLiveChartEngine
livechartsLiveChartEngine, theme helpers, shared types
livecharts/datacreateWalker, aggregateCandles (no canvas engine in the bundle)

React is a peer dependency (react ≥ 18) for livecharts/react. Vue ≥ 3.4 is optional for livecharts/vue. The engine itself is framework-agnostic — see the roadmap for Astro/HTML and design-system kits.

Feature map

AreaStart here
Install & first chartGetting started
Points, series, candlesData model
Lerp, range, pause/resumeAnimation
Live feeds & walkersFeeding data
Themes & accent colorTheming
Full prop tablesLiveChart API

Prefer a long-form walkthrough with live examples? Open the interactive demo — the same charts are also embedded throughout these docs.

Attribution

The canvas engine is based on Liveline by Benji Taylor (MIT). LiveCharts extracts a framework-agnostic core and ships React / Vue bindings, data helpers, and docs on top. Full notices: npm LICENSE.

On this page