DemosRange bars

Range bars

import { Chart } from '@tradecanvas/chart'

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

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

● Simulated market data, generated in your browser

Bars of a fixed high-to-low range: a new bar only once price has moved that far.

API: chartType: 'rangeBars'

When to use it

What it shows
Bars of equal size whatever the clock: many in a fast market, few in a quiet one.
Keep in mind
The last bar is still forming; bar counts no longer measure time.
Who reaches for it
Intraday and futures traders who want activity, not minutes, on the axis.

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