Chart Features
Use enabled_features and disabled_features to control which parts of the chart UI are visible.
How It Works
enabled_featuresturns on the features you listdisabled_featuresturns off the features you list- if you provide only disabled features, the rest stay available
- if you provide enabled features, the chart treats it as a focused feature set
Common Feature Keys
| Feature key | What it controls |
|---|---|
search | Symbol search in the chart UI. |
interval | Timeframe selector. |
chart_type | Chart style selector. |
compare | Compare overlay tools. |
indicator | Indicator controls. |
alert | Alert controls. |
replay | Replay mode controls. |
undo_redo | Undo and redo controls. |
layout | Layout controls. |
multi_layout | Multi-layout support. |
settings | Settings controls. |
theme | Theme switching. |
keyboard_shortcuts | Keyboard shortcut help. |
export | Export and screenshot actions. |
fullscreen | Full screen controls. |
timezone_selector | Timezone selector. |
range_selector | Range selector. |
preset_selector | Preset selector. |
watchlist | Watchlist panel. |
data_window | Data window panel. |
alert_manager | Alert manager panel. |
depth | Depth panel. |
news | News panel. |
calendar | Calendar panel. |
notifications | Notifications panel. |
indicator_builder | Indicator builder panel. |
open_script | Open script panel. |
one_click_trade | One-click trading. |
display_sidebars | Sidebar visibility as a whole. |
Example
const chart = new Chart({
container,
datafeed,
enabled_features: ["search", "compare", "indicator", "export"],
disabled_features: ["news", "calendar"],
});