Kumo Charts
An open-source library for trading charts: the core holds the bars and the scales, and indicators, drawings, alerts and replay load when you need them.
Show codeHide code
import { createChart } from '@kumo-charts/core';
import { indicators, EMA, VOL, MACD } from '@kumo-charts/core/indicators';
import { drawings, allDrawings } from '@kumo-charts/core/drawings';
import { loadBars } from '@docs/data';
const chart = createChart(document.getElementById('chart')!, {
modules: [indicators([EMA, VOL, MACD]), drawings(allDrawings)],
latestPrice: { countdown: true }
});
chart.data.set(await loadBars(), { interval: '1m' });
chart.data.setTimeframe('1h');
chart.indicators.add({ type: 'EMA', params: { periods: [20, 50] } });
chart.indicators.add({ type: 'VOL', pane: 'main', scale: 'volume' });
chart.priceScale('main', 'volume').setMargins({ top: 0.8, bottom: 0 });
chart.indicators.add({ type: 'MACD' });npm install @kumo-charts/coreWhere to start
- Getting started: install it, draw a first chart, connect real-time data.
- Modules: loading indicators, drawings, alerts and replay as you need them.
- Data and Timeframes and calendars: bars, trades, and any timeframe built in the browser.
- Indicators and Drawings: 87 indicators, 51 drawing tools.
- Vue and React: components and composables.
- API reference: every function and option.
Apache-2.0 licensed; the source is on GitHub.