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 timeimport { 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● 模拟行情数据,在你的浏览器中生成
阶梯线,并填充其下方的面积。
API: chartType: 'stepArea'
何时使用
- 它显示什么
- 价格停在哪里、何时变动,以填充形状呈现,一眼可读。
- 注意事项
- 与阶梯线一样只有收盘价:K线内部的波动不画。
- 谁会用它
- 利率、定盘价等按台阶变化的价格;概览面板。
把上方图表切换为同一类的其他类型;每种都保留当前行情。







