Workspaces and comparisons
Show several charts in one widget and compare symbols on one chart.
One widget can hold several charts. Each chart keeps its own data, analysis and lifecycle, while the widget handles the layout and keeps the charts in sync.
widget.onChartReady(() => {
widget.setLayout('2h');
widget.chart(1).setSymbol('MSFT');
});Synchronization
Use the built-in controls to sync symbol, interval, crosshair, time and date range across charts. Don't copy every event from one chart to another by hand, because that can cause loops. When you switch to a smaller layout, hidden charts may be kept around. Changing the grid doesn't necessarily clear their state.
Comparisons
Comparison series belong to their chart. If your release offers the public comparison API, use it, and keep comparisons, indicators and the main series separate. Get fresh handles after restoring a layout.
Sharing drawings
Which drawings are shared depends on symbol and layout ownership. Sharing keeps drawing IDs stable and checks saved metadata. Don't copy internal model objects from one chart to another.
Loading chart… · Fixed sample period ending 15 October 2026.