示範Spline

Spline

import { Chart } from '@tradecanvas/chart'

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

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

● 模擬行情資料,在你的瀏覽器中產生

一條穿過收盤價的平滑曲線。

API: chartType: 'spline'

何時使用

它呈現什麼
把折線圖的轉角磨圓後的價格路徑,絕不高於較高的收盤價,也不低於較低的。
注意事項
兩個收盤價之間的曲線是畫出來的,不是成交出來的:看收盤價,別看彎曲。
誰會用它
簡報與長週期檢視,平穩的線比鋸齒線更好讀。

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