Columns
Code
Read the docs →import { Chart } from '@tradecanvas/chart'
const chart = new Chart(document.getElementById('chart')!, {
theme: 'light',
chartType: 'columns',
})
chart.setData(bars) // OHLCV bars, oldest first
chart.setChartType('columns') // switch at any timeimport { Chart } from '@tradecanvas/chart'
const chart = new Chart(document.getElementById('chart')!, {
theme: 'dark',
chartType: 'columns',
})
chart.setData(bars) // OHLCV bars, oldest first
chart.setChartType('columns') // switch at any time● Simulated market data, generated in your browser
A column up to each close, coloured by the close against the one before.
API: chartType: 'columns'
When to use it
- What it shows
- The run of closes as a block, its rises and falls in two colours, standing clear of the volume.
- Keep in mind
- Only the close is drawn: the range and the open are gone.
- Who reaches for it
- Dashboards and reports; anyone showing closes to readers who do not read candles.
Switch the chart above between types of the same family; each keeps this market.







