> ## 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.

# Edit the style of a widget

> How to style widgets in Atoti UI using the Style tab, including showing, hiding and formatting the title bar of a widget, formatting numerical values per measure or for all measures at once, adding conditional and default styles for table cells and chart traces, formatting table cells by value or by position, formatting table totals, table size and header wrap settings, and chart axis titles, legends, data labels, point sizes, and trace colors.

The style of a [widget](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/about-widgets.md) can be edited using the **Style** tab. This can be accessed from the **Tools panel**, next to the [data model](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/navigate-atoti-ui/data-model.md) on the left of the application. Open the **Style** tab by clicking its icon.

Different aspects of a widget can be modified depending on its type, for example you can change the [size of a table](#table-size), or add [axis titles](#axis-titles) to a chart, therefore the **Style** tab will contain different sections depending on the type of the selected widget.

![Open the style
tab](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/open-style-tab.gif?s=382801fd7d085e3abe6f1fe9be8331ac)

> [!NOTE]
>
> The **Style** tab is available for all widget types except gauge and bullet
> charts.

## Title bar

The **Title bar** section controls the title bar of the selected widget: whether it is shown, and how its text and background look.

![A dashboard with the Style tab open in the tools panel and the Title bar
section outlined, showing its switch and its formatting
controls](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/title-bar-section.png?fit=max\&auto=format\&n=6HeHK8nCkGvZilsK\&q=85\&s=68f2646451c5457cd6dcc7d52678e0a0)

### Show or hide the title bar

* To show or hide the title bar, toggle the **Title bar** switch in the **Style** tab.
* Alternatively, click the **"…"** that appears when you hover in the top right corner of the widget and select **Hide widget title bar**.

A hidden title bar is collapsed into a thin strip at the top of the widget.
Clicking that strip brings the title bar back.

### Format the title bar

While the title bar is shown, the formatting controls below the **Title bar** switch apply to the name of the widget and to the background of the title bar.

## Format values

You can choose the format of display for numerical values on a per [measure](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/navigate-atoti-ui/data-model.md#measure) basis.

* Select a measure from the dropdown.
* Choose the format of display from the next dropdown. The default is **Number**, the other options are **Percentage**, **Thousands**, **Millions** and **Billions**.
* You can also use the red and green arrows next to the dropdown to control how many decimal places are shown for the values of the chosen measure.

![Format
values](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/format-values.gif?s=05ef5728624102f5112a41c4f721fb13)

> [!NOTE]
>
> On charts, formatting the numbers will change the value displayed in the
> tooltip when hovering a chart point, and on the [**Data
> labels**](#data-labels) if you have enabled these.

## All measures

The dropdown at the top of the **Style** tab lists the fields of the widget, plus an **All measures** entry.

Select **All measures** to style every measure of the widget in one go, instead of repeating the same work measure by measure.
It applies to the [number format](#format-values), the number of decimals, the alignment and the [conditional styles](#conditional-styles).

A measure that carries a setting of its own keeps it: the settings of a measure take precedence over those of **All measures**, one by one.
For example, if **All measures** formats values as **Millions** and one measure is formatted as **Percentage**, only that measure is displayed as a percentage.
Conditional styles count as a single setting: the styles of a measure replace those of **All measures** rather than adding up with them.

> [!NOTE]
>
> The **Date format** dropdown stays disabled while **All measures** is
> selected, as it only applies to fields of type **Time**. So does the **Apply
> to full row** checkbox, which needs a single measure to drive the style of the
> rows.

> [!NOTE]
>
> The **All measures** entry is not displayed on widgets whose fields are not
> measures, such as [drillthrough tables](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/about-widgets.md#tables-for-raw-data),
> nor on widgets displaying a single measure, such as pie and donut charts.

## Conditional styles

A conditional style can be applied *conditionally* to a widget, depending on the value of a member. In the **Conditional styles** section of the **Style** tab, you can add rules which will apply a color only to the members which fulfill the requirements, for example you could choose to highlight in green all members with a value greater than 0. How this color is applied will depend on the [widget type](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/about-widgets.md#types-of-widgets).

| Chart type | Applied to |
| - | - |
| Table | Table cells |
| Line/radar chart | Chart points |
| Column chart | Columns |
| Bar chart | Bars |
| Pie/Donut chart | Sectors |

### Add a conditional style

To add a conditional style:

* If your widget has more than one measure, select the measure on which you wish to apply the conditional style from the dropdown at the top of the **Style** tab, or [**All measures**](#all-measures) to apply it to all of them.
* Click the **+** icon next to the title **Conditional styles**, this will open a popup containing some inputs and a color palette.
* Use the first dropdown to create your rule and the input box next to it to specify a value. For example, if you want to highlight all cells less than 0, choose *is lower than* from the dropdown and enter *0* in the input box.
* Optionally add a second condition to your rule using the second dropdown and input.
* Choose a color from the color palette.
* Click **Apply style**.

Conditional styles are displayed as tiles in the **Style** tab. Their rules are applied in the order of the tiles, from top to bottom, with each new rule taking priority over any previous rules. For example, if I have a measure with the values 15 and 25, if I first add a rule where values > 10 are blue, then add a rule where values > 20 are green, 15 will be blue and 25 will be green. However if I had added the second rule first, both values would be blue.

> [!TIP]
>
> Conditional style tiles can be reordered by dragging and dropping, which will
> change the order in which their rules are applied.

![Conditional
styles](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/conditional-styles.gif?s=146531b068f2b404a6c8113a91b18c37)

### Add a default style

In contrast to a conditional style, a default style is applied to all members of the selected measure unconditionally. However, it has the lowest priority and is overwritten by any conditional styles.

To add a default style:

* Hover the tile with the name **Default** in the **Style** tab, you will see some icons appear on the right of the tile.
* Click the **edit** icon, this will open a popup containing a color palette.
* Choose a color, then click **Apply style**.

![Add a default
style](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/add-a-default-style.gif?s=c668d184e2ad5c9ca2c49c60a3560862)

### Edit a conditional/default style

To edit a conditional or default style:

* Hover over the corresponding tile in the **Style** tab, you will see some icons appear on the right of the tile.
* Click the **edit** icon, this will open the **Edit style** popover.
* Make your changes, either to the rules or the colors, then click **Apply style**.

> [!NOTE]
>
> On table widgets, you can choose to apply conditional or default styles to
> entire rows (as opposed to individual cells) when the value of the cell in the
> column corresponding to the selected measure fulfills the condition(s). To do
> so, click the **Apply to full row** checkbox.

### Remove a conditional/default style

To remove a conditional or default style:

* Hover over the corresponding tile in the **Style** tab, you will see some icons appear on the right of the tile.
* Click the **X** icon.

## Reset fields

Clicking the **Reset fields** button will remove any default or conditional styles and number formatting that has been applied to a widget.

## Table styles

The following section of the **Style** tab will only be visible if the selected widget is a [table for aggregated data](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/about-widgets.md#tables-for-aggregated-data) or a [drillthrough table](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/about-widgets.md#tables-for-raw-data).

The [v2 table widgets](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/spreadsheets.md#spreadsheets-and-v2-table-widgets) show only these sections:

* [Format cells](#format-cells)
* [Table size](#table-size)
* [Row and column numbers](#row-and-column-numbers)
* [Totals formatting](#totals-formatting)

### Format cells

The **Formatting** section styles the text and the background of the selected cells.
It is not available on drillthrough tables.

1. Select the cells to format.
   To select a whole row or column, click its number.
   See [row and column numbers](#row-and-column-numbers).
2. In the dropdown of the **Formatting** section, choose what the formatting follows:
   * The selected members, such as **Paris**.
     The formatting follows these members when they move after a filter or a sort, for example.
     This option is available when the selection holds only headers, or whole rows or columns.
   * The selected cells, such as **B2 to D4**.
     The formatting stays on these cells when their members move.
3. Choose the text style, the font size and the colors in the toolbar below.

### Table size

Table widgets can be made 3 different sizes: **small**, **medium** or **large**.

* To change the table size use the **Table size** dropdown to select the required size.

![Change the size of a
table](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/change-table-size.gif?s=5f2d3e5ac8a6a61090e864faef38d77f)

> [!TIP]
>
> The default table size can be configured via the **table.defaultSize**
> [setting](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/developer-guide/customize-atoti-ui/user-settings.md).

### Headers wrap

Sometimes, the text content of a header cell (at the top of a table) is too long to fit. **Headers wrap** allows you to control what happens in this situation. When switched on, the text wraps and is displayed on several lines. When switched off, the overflowing part of the text is truncated and an ellipsis is shown. The full text can be seen in a tooltip, visible when hovering over the cell.

* To switch the table header text wrapping on or off, toggle the **Headers wrap** switch in the **Style** tab.

> [!TIP]
>
> The default table header text wrapping can be configured for all tables at
> once using the **table.headers.wrap**
> [setting](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/developer-guide/customize-atoti-ui/user-settings.md).

### Table cell tooltips

Tooltips appear when hovering over table cells. They allow you to see at a glance which members a specific figure corresponds to, which is otherwise not always obvious in a large table.

* To switch table cell tooltips on or off, toggle the **Tooltips** switch in the **Style** tab.

> [!NOTE]
>
> This does not affect tooltips on cells with truncated texts, which remain
> always on.

> [!TIP]
>
> The default visibility of table tooltips can be configured for all tables at
> once using the **table.tooltips**
> [setting](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/developer-guide/customize-atoti-ui/user-settings.md).

### Row and column numbers

Row and column numbers help identify specific rows and columns in a large table.
They also let you select a whole row or column by clicking its number.

* To show or hide them, toggle the **Row and column numbers** switch in the **Style** tab.

> [!TIP]
>
> The default visibility of row and column numbers for tables can be configured
> using the **table.rowNumbers**
> [setting](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/developer-guide/customize-atoti-ui/user-settings.md).

### Totals formatting

The **Totals formatting** section styles the grand total and the totals of each level of a table.
For example, it can show the total of each city in bold.
It is available on pivot tables, tree tables and tables.
The v2 table widgets have it too.

* Toggle the **Totals formatting** switch to format the totals of the table.
* Choose whether to format the totals of the **Rows** or of the **Columns** in the **Axis** dropdown.
* Choose whether the formatting applies to the **Header** cells only, or to the **Header and body** cells, in the **Apply to** dropdown.
* Expand the tile of the **Grand total** or of a level, then style its text and background with the toolbar.

![A pivot table with its grand total formatted, next to the outlined Totals
formatting section of the Style
tab](https://mintcdn.com/activeviam/jXK2CwJRhD28R3r1/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/totals-formatting.png?fit=max\&auto=format\&n=jXK2CwJRhD28R3r1\&q=85\&s=91117bd92a13c0c03b71a2ba3387f2b5)

Until you edit it, the totals formatting of a table follows the **Format totals** [settings](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/navigate-atoti-ui/settings.md).
Once you edit it, the table keeps its own totals formatting.
Click **Reset to default** to follow the settings again.

## Chart styles

The following sections of the **Style** tab will only be visible if the selected widget is a [chart](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/about-widgets.md#charts).

### Axis titles

Axis titles display the names of hierarchies and measures used in a chart, on the X and Y axes. For example, a simple line chart with *City* on the **X axis** and *delta.SUM* on **Values** in the **Fields** tab would display the title *City* under the chart, parallel to the X axis, and *delta.SUM* on the left, parallel to the Y axis. If a chart contains more than one measure or hierarchy, these will all appear in the axis title as a list separated by commas.

* To add or remove axis titles, toggle the switch in the **Style** tab.

![Toggle axis
titles](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/toggle-axis-titles.gif?s=ac51e0451983a1137de2889061f804dd)

### Axis labels

To change the font size of axis labels, change the value of **Axis labels size** in the **Style** tab.

![Change axis labels
size](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/change-axis-labels-size.gif?s=0266d756353d543ca8bf72d00016d3ab)

### Axis ticks

Each axis of a chart has its own section in the **Style** tab: **X-axis ticks**, **Y-axis ticks**, **Secondary Y-axis ticks**, **Z-axis ticks**, **Angular axis ticks** or **Radial axis ticks**.
To set the step between two ticks of an axis, enter it in the **Every** field of that axis.
To return to automatic ticks, clear the **Every** field.

### Data labels

Data labels can be used to display values on a chart. For line charts, the data labels will appear next to each chart point, for bar and columns charts they will appear inside the bar or column, and for pie or donut charts they will appear inside each sector. To change the format or number of decimal places shown in the data labels, see [format values](#format-values).

* To add or remove data labels, toggle the switch in the **Style** tab.

![Toggle data
labels](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/toggle-data-labels.gif?s=f0cc078a0e45debcfd1eef47b9914cf4)

### Colors

The **Colors** section of the **Style** tab enables you to change the colors of a chart. Where this color is applied will depend on the chart type.

| Chart type | Applied per | Applied to |
| - | - | - |
| Line chart | Measure | Chart trace and area |
| Column chart | Measure | Columns |
| Bar chart | Measure | Bars |
| Pie/Donut chart | Member | Sectors |
| Scatter plot | Member | Markers |

To change the chart colors:

* In the **Colors** section, you will see tiles for each measure (for line, column or bar charts) or each member (for pie/donut charts or scatter plots).
* Hover over the tile for the measure/member for which you wish to change the color, you will see an **edit** icon appear on the right of the tile.
* Click the **edit** icon to open the **Edit colors** popover.
* Choose a color from the color palette, or choose a custom color by entering a hex color code in the input box.
* Click **Apply color**.

![Change chart
colors](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/change-chart-colors.gif?s=a489223068a991c5c2e5f72a8af5155f)

You can reset all colors back to their defaults by clicking the **Reset colors** button at the bottom right of the **Colors** section.

> [!NOTE]
>
> If there is a default or conditional style applied to the chart, this will
> override the chart colors for all chart types except line charts (because
> default/conditional styles affect the chart points whereas the color affects
> the chart trace and area).

### Legend

To hide or show chart legends, toggle the **Legend** switch in the **Style** tab.

![Toggle chart
legend](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/toggle-legend.gif?s=f38cdd02b468a0035145b0ad94a6fb6c)

### Point size

To change the size of chart points, change the value of **Point size** in the **Style** tab.

![Change point
size](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/adapt-widget-display/change-point-size.gif?s=c6e6ee950cb57b86f1597881bc33edd5)
