Skip to main content
Skip to main content

Chart settings

The Chart settings dialog (gear icon on desktop, ⋯ → Chart settings on mobile) is where users customize how the chart looks and which layers are visible — without writing code.

Loading chart…
Open the gear icon (or ⋯ on mobile) to explore these options on a live chart.

Tutorial for saving settings: Save and restore settings.
Toolbar placement: Top toolbar and mobile.


How to open it

ScreenPath
DesktopTop toolbar → gear icon
Mobile (compact)Top toolbar → Chart settings

Tap OK at the bottom to close. Changes apply immediately — no separate Save button.


Dialog map

The settings window is organized in sections from top to bottom:

flowchart TB
Layers["On chart — layers tabs"]
Lang["Language"]
Themes["Theme templates"]
Symbol["Main symbol — colors & type"]
Overlay["Overlay symbols — if any"]
Canvas["Canvas — background & grid"]
Scales["Scales — axes & last price"]
Volume["Volume pane"]

Layers --> Lang --> Themes --> Symbol --> Overlay --> Canvas --> Scales --> Volume

1. On chart — layers (visibility)

The first section manages what is drawn on top of the candles. Four tabs:

TabWhat it lists
IndicatorsEMA, RSI, MACD, …
FunctionsBuilt-in function scripts on the chart
StrategiesSignal / strategy overlays
DrawingsTrend lines, Fibonacci, boxes, …

Each tab shows a table. Column meanings depend on the tab:

Indicators and functions

ColumnIconMeaning
NameScript title
Plot (eye)👁Show or hide the script on the chart
Scale (eye)👁Show or hide the price label on the Y axis for that script
Remove🗑Delete the script from the chart

Plot vs scale — plain English:

  • Turn Plot off → the line or histogram disappears, but the script may still run in the background.
  • Turn Scale off → the script may still draw, but its price tag on the right axis is hidden. Useful when many indicators crowd the scale.

Strategies

ColumnMeaning
NameStrategy title
VisibleShow or hide strategy markers / overlays
RemoveRemove strategy from chart

Strategies do not have a separate “scale label” column — only visibility on the chart.

Drawings

ColumnMeaning
NameTool label (e.g. “Trend line”, “Fibonacci retracement”)
VisibleShow or hide that shape
RemoveDelete the drawing

At the top of the Drawings tab:

  • Lock all / Unlock all — prevent accidental drags (drawings stay visible but anchors cannot move until unlocked).

Empty tab? You see a short message — add an indicator from the toolbar or draw something on the chart first.

Programmatic equivalent (integrators)

chart.setChartIndicatorVisibility(scriptId, false);
chart.setChartIndicatorPriceTagVisibility(scriptId, false);
chart.setChartFunctionVisibility(scriptId, true);
chart.setChartStrategyVisibility(scriptId, false);
chart.setChartDrawingVisibility(objectId, false);
chart.lockAllDrawings();

Lists for your own UI: getChartIndicatorSettings(), getChartFunctionSettings(), getChartStrategySettings(), getChartDrawingSettings().


2. Language

Dropdown of supported locales for chart chrome and script labels (menus, dialogs, indicator names).

What changesWhat does not
UI strings, localized indicator titlesYour app’s own buttons outside ChartUI
Number/date formatting where the runtime localizesSymbol names from your data feed
chart.setLocale("pl-PL");
chart.getLocale();

The settings dialog reads chart.getSupportedLocales() for the option list.


3. Theme templates

A grid of preset themes — one tap applies a full look:

  • Background, candle up/down colors, grid, toolbar chrome
  • Matching UI theme for dialogs and menus

Presets include trading-dark, light, and other bundled styles. After you pick a preset, individual color tweaks below still work — picking a preset again overwrites with that bundle.

Save a user’s final look: Save and restore settings (exportChartSettingsTemplate).


4. Main symbol — chart type and colors

Controls the primary instrument (first symbol on the chart).

FieldWhat it does
Chart typeOHLC candles, bars, line, histogram, line + histogram
Chart lineLine color (line modes)
Line styleSolid, dashed, dotted, …
Line fillFill color under a line chart
Fill gradientSecond color + opacity for gradient fill
Fill modeSolid or gradient
Show area under line (eye)Toggle fill under the main line on/off
Candle up / downBody colors
Up / down strokeWick and border colors

On overlay charts (two symbols), this section is labeled with the main symbol name. Each extra symbol gets its own section below with line color, style, and chart type.

chart.applyChartAppearanceSettings({ candleUpColor: "#25ad98", /* … */ });
chart.applyChartInstrumentSettings(seriesId, { lineColor: "#f0b429", lineDash: [4, 4] });

5. Canvas — background and grid

FieldWhat it does
Plot backgroundColor behind the candles
GridGrid line color
Grid linesBoth axes, horizontal only, vertical only, or hidden
Line styleSolid or dashed grid
Show grid (toggle)Master on/off for the grid

Hiding the grid does not remove axes — only the inner grid lines.


6. Scales — axes and last price

FieldWhat it does
Axis labelsText color on price and time axes
Axis backgroundBackground behind axis labels
CrosshairCrosshair line color
Last price line (toggle)Horizontal line at the current price
Last price label (toggle)Price tag on the Y axis at the last close

These are the settings traders often call “show last price” or “price line”:

  • Last price line → colored horizontal ray following the market.
  • Last price label → numeric label on the scale (can use one without the other).
chart.applyChartAppearanceSettings({
lastPriceLineVisible: true,
lastPriceLabelVisible: true,
});

Related toolbar controls (autoscale, Lin/Log/%) live on the top bar: Autoscale and value axis.


7. Volume pane

Only active when a volume indicator is on the chart. Otherwise you see a hint to add volume first.

FieldWhat it does
Show volume (toggle)Show or hide the volume pane
OpacitySlider — how strong the volume bars look
Bar colorsMatch candle colors, or single custom color
Bar colorPick one color when “single color” mode is selected
chart.applyChartVolumeSettings({
visible: true,
opacity: 0.7,
colorMode: "candle",
});

Settings vs toolbar — who does what?

User goalUse
Change timeframeTop bar → Interval
Add RSITop bar → Indicators
Linear vs log scaleTop bar → Scale (or ⋯ on mobile)
Hide an indicator but keep it runningChart settings → Layers → Indicators → Plot off
Hide indicator’s Y-axis tag onlyChart settings → Layers → Scale off
Change candle colorsChart settings → Main symbol / Theme template
Hide last price lineChart settings → Scales
Polish UI languageChart settings → Language

Persist settings for your users

Export everything the dialog touches:

const template = chart.exportChartSettingsTemplate("user-workspace");
localStorage.setItem("chart-workspace", JSON.stringify(template));

Restore on next visit:

chart.importChartSettingsTemplate(JSON.parse(raw));

Layers (which indicators are visible) are partially separate — see Save and restore settings for drawings and script lists.


Theming without opening the dialog

Integrators can set defaults at mount time:

const chart = createChart({
container,
theme: { background: "#0b0f17", candleUp: "#25ad98", candleDown: "#d12e59" },
themeVariant: "dark",
});
<ChartUI chart={chart} theme={{ accentColor: "#14f7ab", toolbar: { background: "#111827" } }} />

Playground: Live theme creator.


What is next?