示範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線很多時,圓點會連成一條線。
誰會用它
把收盤價當作點來比較,或把一組資料疊加到另一張圖上的人。

把上方圖表切換為同一類的其他類型;每一種都保留目前的行情。