Skip to content

Candlestick chart

import { CandlestickChart } from '@arshad-shah/swift-chart';
const chart = new CandlestickChart('#chart', { theme: 'midnight' });
chart.setData(ohlc, { labelField: 'date' });
// each row: { date, open, high, low, close }

Custom up / down colours

Reference