@tradecanvas/vue

Vue 3 component for @tradecanvas/chart — reactive props, template ref, zero boilerplate.
2,250 27
Install
npm install @tradecanvas/vue
Latest Version:1.3.13
Vue:3
License:MIT
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: bonv

@tradecanvas/vue

Vue 3 component for @tradecanvas/chart — reactive props, template ref, zero boilerplate.

Install

npm install @tradecanvas/vue @tradecanvas/chart

vue (>= 3.3) is a peer dependency.

Usage

<script setup lang="ts">
import { TradeCanvas } from '@tradecanvas/vue'
import type { Chart } from '@tradecanvas/chart'

function onReady(chart: Chart) {
  // full charting API
}
</script>

<template>
  <div style="height: 500px">
    <TradeCanvas
      symbol="BTCUSDT"
      timeframe="5m"
      theme="dark"
      :indicators="['rsi', 'macd']"
      @ready="onReady"
    />
  </div>
</template>

Streams live Binance data by default. Pass :data="bars" for static OHLC, or :adapter="..." for any feed.

Props & events

Props: symbol, timeframe, theme, chartType, indicators (ids, or { id, params, position }), data (bars of your own; no stream), adapter, stream (false: no stream of its own), historyLimit, features (changes apply after mount too), autoScale, signalMarkers, signalMarkerStyle, tradeZones, tradeZoneStyle, overrides (style overrides by key, all of your app's), watermarkText.

Events: @ready="(chart) => …", @crosshairMove="(payload) => …".

Imperative access

<script setup lang="ts">
import { ref } from 'vue'
const el = ref()
// el.value.getChart() · el.value.screenshot('chart.png')
</script>

<template>
  <TradeCanvas ref="el" symbol="BTCUSDT" />
</template>

Reach the underlying Chart (drawings, trading, execution adapters, plugins, resizable panes) via @ready or the template ref's getChart(). See the main docs.

License

MIT

Related Packages

@rekurt/openkline-vue

Vue 3 wrapper for @rekurt/openkline-core — component and useOHLCVChart composabl...

205 1
tradingraph

Based on rpiontik chart https://github.com/rpiontik/crypto-chart

1,152 0
vue-chartjs-financial

Financial (Candlestick/Ohlc) charts with chartjs.org and npm package vue-chartjs

3,033 7
vue-canvas-gauges

Canvas gauges component is based on canvas-gauges for Vue

2,723
vue2-canvas-gauges

Canvas gauges component is based on canvas-gauges for Vue2

1,034

Version History

Version Released Vue License
1.3.13 >=3.3.0 MIT
1.3.12 >=3.3.0 MIT
1.3.11 >=3.3.0 MIT
1.3.9 >=3.3.0 MIT
1.3.8 >=3.3.0 MIT