HLC bars
Code
Read the docs →import { Chart } from '@tradecanvas/chart'
const chart = new Chart(document.getElementById('chart')!, {
theme: 'light',
chartType: 'hlcBars',
})
chart.setData(bars) // OHLCV bars, oldest first
chart.setChartType('hlcBars') // switch at any timeimport { Chart } from '@tradecanvas/chart'
const chart = new Chart(document.getElementById('chart')!, {
theme: 'dark',
chartType: 'hlcBars',
})
chart.setData(bars) // OHLCV bars, oldest first
chart.setChartType('hlcBars') // switch at any time● Simulated market data, generated in your browser
A stem from low to high with a tick at the close, and no open.
API: chartType: 'hlcBars'
When to use it
- What it shows
- Each bar’s range and where it closed in it, coloured by the close against the one before.
- Keep in mind
- With no open, a bar’s own direction is not shown.
- Who reaches for it
- Traders who read the close against the range, as many classic chart books draw it.
Switch the chart above between types of the same family; each keeps this market.







