演示Dots

Dots

import { Chart } from '@tradecanvas/chart'

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

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

● 模拟行情数据,在你的浏览器中生成

每个收盘价处一个圆点。

API: chartType: 'dots'

何时使用

它显示什么
每个收盘价各自独立,没有一条线暗示价格如何从一个走到下一个。
注意事项
屏幕上K线很多时,圆点会连成一条线。
谁会用它
把收盘价当作点来比较,或把一组数据叠加到另一张图上的人。

把上方图表切换为同一类的其他类型;每种都保留当前行情。