> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Customize charts

> How to customize Plotly chart appearance in Atoti UI beyond the Style tab by adding a plotly attribute in the State tab, using the layout, data, and config properties to override legend position, marker mode, and the displayModeBar configuration option.

[Charts](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/about-widgets.md#charts) can be styled using the [Style tab](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/adapt-widget-display/edit-the-style-of-a-widget.md). However, they can be customized further in the **State** tab.

> [!NOTE]
>
> The **State** tab is an advanced
> [tool](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/developer-guide/customize-atoti-ui/customize-the-dashboard/manage-the-tool-panel/configure-the-tool-panel.md).
> If you cannot find it in your application, contact your system administrator.

In the **State** tab you can add a `plotly` attribute and use the [layout](https://plotly.com/javascript/reference/layout/), data or [config](https://plotly.com/javascript/configuration-options/) properties to override the default configuration and modify certain aspects of [Plotly](https://plotly.com/javascript/reference/) charts. For example, to change the chart legend's position to horizontal, you can add the following code:

```
	"plotly": {
		"layout": {
			"legend": {
				"orientation": "h"
			}
		}
	}
```

You can use the `data` property to change a line chart to only display the markers:

```
	"plotly": {
		"data": {
			"commonTraceOverride": {
				"mode": "markers"
			}
		}
	}
```

You can use the `config` property to edit the Plotly [configuration options](https://plotly.com/javascript/configuration-options/). For example, you can have the display mode bar always be visible:

```
	"plotly": {
		"config": {
			"displayModeBar": true
		}
	}
```
