DemosSpline

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

● Simulated market data, generated in your browser

A smooth curve through the closes.

API: chartType: 'spline'

When to use it

What it shows
The path of price with the corners of a line chart rounded off, never above a high close or below a low one.
Keep in mind
The curve between two closes is drawn, not traded: read the closes, not the bends.
Who reaches for it
Presentations and long views where a calm line reads better than a jagged one.

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