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

# About widgets

> The Widgets panel in Atoti UI dashboards provides table widgets such as the Pivot table and the Database widget, KPI widgets, and Plotly charts for visualizing and exploring data in different ways.

Widgets are the building blocks of [dashboards](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/dashboards.md), organizing, viewing, and deriving meaning from data. A widget's data is selected with [fields](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/add-fields.md) and refined with [filters](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/filters/add-a-filter.md), except for the Database widget, which is not driven by dashboard filters or a cube query.

Widgets support:

* [Sorting](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/analyze-data/sort-data.md) data ascendingly or descendingly by hierarchy or measure.
* [Switching](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/add-or-modify-widgets.md#switch-widget-type) between widget types.
* [Real-time updates](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/analyze-data/refresh-dashboard-data.md#turn-on-real-time), keeping widget data current as new data arrives from the server.
* [Sharing](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/share-content.md#share-a-widget) with other users in an organization, so they can add the widget to their own dashboards.
* [Exporting](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/exports/export-to-csv-or-pdf.md#export-to-csv) data to CSV.
* Appearance customization through 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), such as table cell colors or chart trace colors.

## Widgets panel

The **Widgets panel** contains all of the available widgets in your application. It is located to the right of the **Tools panel** and can be collapsed, hidden, or expanded.

![Widgets
panel](https://mintcdn.com/activeviam/vlNI2xRByj-ZsSYu/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/widgets-panel.png?fit=max\&auto=format\&n=vlNI2xRByj-ZsSYu\&q=85\&s=9f9dd4f75d580af3e8a70200cbe02f16)

This panel can be used to:

* [Add new widgets](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/add-or-modify-widgets.md#add-a-new-widget).
* [Switch](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/create-a-dashboard/widgets/add-or-modify-widgets.md#switch-widget-type) the type of a widget.

The **Widgets panel** can be expanded or collapsed by clicking the arrows in the top right corner. It can be resized by dragging from the right edge.

![Collapsing the widgets
panel](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/expand-collapse-widgets-panel.gif?s=e6302ff4d72a68cd4fb4db5d5b582f34)

The **Widgets panel** can be hidden by clicking the arrow at the bottom of the panel. It can be shown again by clicking the button attached to the bottom right of the **Tools panel**.

![Hiding the widgets
panel](https://mintcdn.com/activeviam/6HeHK8nCkGvZilsK/data-visualization/atoti-ui/5.2/static/img/user-guide/create-a-dashboard/widgets/hide-show-widgets-panel.gif?s=f79eadb17ad97822a7f7d3eca5cbbc9c)

## Types of widgets

Many different types of widgets are available in the application. The majority are used to visualize data, for example, a **Pivot table** or a **Line chart**, but some widgets also provide extra controls or information for the user, for example, the **Text editor**.

> [!NOTE]
>
> Widgets are plugins, so your application may not include all of the widget
> types listed here. If you cannot find a specific widget type in your **Widgets
> panel**, contact your system administrator.

### Tables for aggregated data

These table widgets display data aggregated over a cube.

A **Pivot table** displays aggregated data, organized as logical hierarchies and levels. It allows [drilling down](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/analyze-data/drill-down.md) into level members to reveal their subtotals and children.

A **Tree table** is similar to a pivot table, but the columns of its row header are condensed into a single column, displayed as a tree.

A **Table** is more suited to displaying flat data and it does not have the drill-down functionality. The **Table** has a breaking sort: when a sort is applied, the members in a column are sorted without regard to the hierarchy. **Pivot tables** and **Tree tables** have a non-breaking sort. For more information, see [sort data](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/analyze-data/sort-data.md).

### Tables for raw data

These table widgets display raw, non-aggregated data.

A **Drillthrough** table displays all the underlying facts (also referred to as **records** or **contributors**) that contribute to a specific [cube](https://docs.activeviam.com/data-visualization/atoti-ui/5.2/user-guide/navigate-atoti-ui/data-model.md#cube) location.

A **Database** widget displays the content of an Atoti server's database, one table at a time.
It allows selecting a branch and a table, paging through rows, and showing, hiding, sorting, filtering, and resizing columns.
Unlike the other table widgets, it is not driven by dashboard filters or a cube query.

The two also expose different fields, not just different data.
A cube can expose computed columns in a **Drillthrough** table that have no equivalent in the database.
A database can hold columns and tables that are never part of any cube. For example, some columns are hidden from drillthrough. Whole tables might never be joined to the cube's fact table, so they never appear in a drillthrough row.

Use a **Drillthrough** table to debug an aggregated value shown in another widget and trace where it comes from.
Use a **Database** widget to display data that will never be aggregated into a cube, such as market data.

### KPI widgets

**KPI** widgets allow you to see the values of high level indicators at a glance.

There are two types of KPI configurations:

* **KPI** - shows the totals for the members of the added hierarchy for each added measure.

* **Comparison KPI** - enables you to compare values for 2 members from the same hierarchy. For example, you could choose to compare values for *USD* and *GBP* from the *Currency* hierarchy.

> [!NOTE]
>
> KPI widgets are often used to compare values across 2 dates. In this situation, the *"Compare current date to previous date"* option allows to always compare the latest 2 dates. This way, the widget remains relevant day after day, even when new data comes in.
>
> This feature is only available for slicing hierarchies within dimensions of type `"TIME"`.

### Charts

Atoti UI uses [Plotly](https://plotly.com/javascript/) charts for chart based data visualization. The available **Plotly** charts are:

| Line charts | Column charts | Bar charts | Pie charts | Other |
| - | - | - | - | - |
| Line chart | Stacked columns | Stacked bars | Pie chart | Scatter plot |
| Areas | Clustered columns | Clustered bars | Donut chart | Radar chart |
| Stacked areas | 100% stacked columns | 100% stacked bars | | Waterfall chart |
| 100% stacked areas | Columns and lines | | | Bullet chart |
| | | | | Gauge |
| | | | | Tree map |
| | | | | 3D surface chart |
| | | | | Sunburst chart |
