LCLiveCharts

Vue

Vue 3 bindings over the shared LiveChart engine

Import <LiveChart /> from livecharts/vue. Same canvas engine as React — Composition API wrapper, SFC-friendly props.

Live previews in these docs use the shared engine via React bindings. Copy the Vue snippets — they match the public livecharts/vue API.

Install

npm install livecharts

Peer: Vue ≥ 3.4.

Bundle size

Same published package as React — pick the livecharts/vue entry. Sizes update automatically when the package builds.

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.

Package layout

ImportWhat you get
livecharts/vue<LiveChart />, LiveChartTransition, useLiveChartEngine
livechartsLiveChartEngine, theme helpers, shared types
livecharts/datacreateWalker, aggregateCandles

Quick example

<script setup lang="ts">
import { LiveChart } from "livecharts/vue";
import type { LiveChartPoint } from "livecharts/vue";
import { ref } from "vue";

const data = ref<LiveChartPoint[]>([]);
const value = ref(0);

// push points from your feed — WebSocket, polling, etc.
</script>

<template>
  <div style="height: 200px">
    <LiveChart :data="data" :value="value" color="#3b82f6" theme="light" />
  </div>
</template>

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

Under SSR (Nuxt), wrap the chart in ClientOnly — see Getting started.

Attribution

Same engine as the React docs — based on Liveline by Benji Taylor (MIT). See Introduction → Attribution.

Next

On this page