Variable WIDGET_TIERConst

WIDGET_TIER: "widget" = ...

Widget tier (opt-in: "openalgo-charts/widget").

The chart with its chrome: a top bar (symbol, intervals, chart type, indicators, capture, settings, theme), the drawing rail, a status line, a keymap and the dialogs, in one call. It is the one tier that ships DOM, because a toolbar is DOM; the engine underneath still ships none.

import { createWidget } from 'openalgo-charts/widget';

const widget = createWidget('#chart', {
feed, symbol: 'RELIANCE', exchange: 'NSE', interval: '5m',
theme: 'dark', persist: true,
});
widget.on('symbol', ({ symbol }) => document.title = symbol);

Importing this module imports the draw tier, so every built-in drawing tool is registered. The dialog modules register their mount functions through registerWidgetDialogs; a shell built without them renders the buttons that would open them disabled, with their state visible.