DemosLine + markers

Line + markers

import { Chart } from '@tradecanvas/chart'

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

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

● Simulated market data, generated in your browser

The close line with a dot at each bar, so every data point can be found.

API: chartType: 'lineWithMarkers'

When to use it

What it shows
Where each close is, which matters on sparse data such as daily rates or fund prices.
Keep in mind
On thousands of bars the dots merge into a thick line.
Who reaches for it
Reports and dashboards with few points: FX fixings, NAVs, monthly figures.

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