Your own look
Code
Read the docs →import { ChartWidget } from '@tradecanvas/chart/widget'
// feed: your DataAdapter (a WebSocketAdapter, or your own class)
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'ETHUSDT',
timeframe: '15m',
theme: 'light',
adapter: feed,
ui: 'terminal', // or 'graphite' (the default), 'modern', 'print', 'studio', 'capsule', 'desk'
})
widget.setUI('capsule')import { ChartWidget } from '@tradecanvas/chart/widget'
// feed: your DataAdapter (a WebSocketAdapter, or your own class)
const widget = new ChartWidget(document.getElementById('chart')!, {
symbol: 'ETHUSDT',
timeframe: '15m',
theme: 'dark',
adapter: feed,
ui: 'terminal', // or 'graphite' (the default), 'modern', 'print', 'studio', 'capsule', 'desk'
})
widget.setUI('capsule')● Simulated market data, generated in your browser
A complete screen out of the box: order ticket, orders and positions on the chart, stop-loss and take-profit you drag, watchlists, alerts and bar replay.
API: setUI







