Dots
Code
Read the docs →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 timeimport { 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● Simulated market data, generated in your browser
A dot at each close.
API: chartType: 'dots'
When to use it
- What it shows
- Each close on its own, without a line suggesting how price got from one to the next.
- Keep in mind
- With many bars on screen the dots run together into a line.
- Who reaches for it
- Anyone comparing closes as points, or laying a series over another chart.
Switch the chart above between types of the same family; each keeps this market.







