# Pie chart

> Visualize a dataclip as a pie chart, with a legend for the segments.

The Pie chart control visualizes a dataclip on a dashboard, with support for a legend explaining the data.

| Mapping | Description |
| --- | --- |
| Reference | Delimits the shown data to a single column or row of a dataclip. |
| Segments | Determines which pie segments are displayed. |

Usability of these mappings depends heavily on the fields you link to them.

## Default chart

By default, table headers become the individual segments for a dynamic row: in most cases you'll need a row-based filter to narrow the chart down to a single row. Since the default segment labels just show each row's occurrence, they're often not very display-friendly: use an extended mapping to fix that.

## Swapped charts

In some cases you need the reverse: a set of column values determines the segments instead of the table headers.

## Events

| Event | Description |
| --- | --- |
| On update | Triggered when the chart updates its data, from an initial load or a changed linked value. |