DemosBar (OHLC)

Bar (OHLC)

import { Chart } from '@tradecanvas/chart'

const chart = new Chart(document.getElementById('chart')!, {
  theme: 'light',
  chartType: 'bar',
})
chart.setData(bars)          // OHLCV bars, oldest first
chart.setChartType('bar')  // switch at any time
import { Chart } from '@tradecanvas/chart'

const chart = new Chart(document.getElementById('chart')!, {
  theme: 'dark',
  chartType: 'bar',
})
chart.setData(bars)          // OHLCV bars, oldest first
chart.setChartType('bar')  // switch at any time

● Simulated market data, generated in your browser

OHLC bars: the same four prices as a candle, drawn thin, the way US desks read them.

API: chartType: 'bar'

When to use it

What it shows
The open and close as ticks on each side of the range, with less ink than a candle.
Keep in mind
Direction is harder to see at a glance than with filled bodies.
Who reaches for it
Futures and stock traders used to Western bar charts; dense charts with many bars on screen.

Switch the chart above between types of the same family; each keeps this market.