DemosStep area

Step area

import { Chart } from '@tradecanvas/chart'

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

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

● Simulated market data, generated in your browser

The step line with the area under it filled.

API: chartType: 'stepArea'

When to use it

What it shows
Where price sat and the moment it moved, as a filled shape that reads at a glance.
Keep in mind
Like the step line, only closes: the swings inside a bar are not drawn.
Who reaches for it
Rates, fixings and prices that change in steps; overview panels.

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