# Overrides

The Overrides API allows you to customize elements on the chart like panes, scales, series, drawings, indicators, legends, and more.

## Chart and drawings

To override a property that relates to the chart, drawing, or trading element, you should specify this property in the [`overrides`](../../api/interfaces/Charting_Library.ChartingLibraryWidgetOptions.md#overrides) parameter of [Widget Constructor](https://charting-library-docs.xstaging.tv/latest/configuration/Widget-Constructor.md). The code sample below changes the chart background color and chart style using [`paneProperties.background`](../../api/interfaces/Charting_Library.ChartPropertiesOverrides.md#panepropertiesbackground) and [`mainSeriesProperties.style`](../../api/interfaces/Charting_Library.ChartPropertiesOverrides.md#mainseriespropertiesstyle).

```js
var widget = window.tvWidget = new TradingView.widget({
    // ...
    overrides: {
        "paneProperties.background": "#020024",
        "mainSeriesProperties.style": 2,
    }
});
```

If you want to change a property's value on the fly, you can use the [`applyOverrides`](../../api/interfaces/Charting_Library.IChartingLibraryWidget.md#applyoverrides) method.

```js
widget.applyOverrides({ "mainSeriesProperties.visible": false });
```

For specific charts in a [multiple-chart layout], use the `applyOverrides` method from the [`IChartWidgetApi`]:

```js
widget.chart(0).applyOverrides({ "mainSeriesProperties.visible": false });
```

For more information on how to customize different entities using overrides, refer to the corresponding topics:

- [Chart overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides/chart-overrides.md)
- [Drawings overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides/Drawings-Overrides.md)
- [Trading overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides/trading-overrides.md)

## Indicators

You can also customize indicators using overrides. Refer to the [Indicator Overrides](https://charting-library-docs.xstaging.tv/latest/customization/overrides/indicator-overrides.md) article for more information.

[`IChartWidgetApi`]: https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.IChartWidgetApi
[multiple-chart layout]: https://charting-library-docs.xstaging.tv/latest/trading_terminal.md#multiple-chart-layout

---

## Sitemap

- [All documentation pages](https://charting-library-docs.xstaging.tv/llms.txt)
- [Full page map with headings](https://charting-library-docs.xstaging.tv/docs_map.md)
