> ## Documentation Index
> Fetch the complete documentation index at: https://cubed3-claude-filter-params-date-injection-pm2qgo.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Pie & donut

> Show how a single measure is distributed across a small number of categories.

Pie charts divide a circle into slices proportional to each category's share of the total. Best for communicating part-to-whole proportions to a broad audience when you have a small number of clearly distinct categories (typically five or fewer).

## Variants

### Pie

Standard filled circle. Each slice's arc length is proportional to its value.

### Donut

A pie with a hollow center. Select **Donut** under **Shape** in the Style tab to switch; select **Pie** to switch back.

## Center total

A donut shows the measure's grand total in its hole by default, using the measure's number format. Use the **Show total** button in the Data labels section of the Style tab to turn it off or on again.

The button appears only for a donut, since a pie has no hollow center to fill.

The total uses the font size set in the Data labels section, the same as the slice labels. If you turn on the **Percentage** label, the total also shows `100%` on a second line, since the whole is the entire circle.

## Color and slice ordering

Slices take their colors from the palette selected in the **Palette** dropdown on the Style tab, in palette order, matched to the sort order of your query results. See [Palettes](/docs/explore-analyze/charts/configuration/color-and-stacking#palettes) for the built-in palettes and how to define a custom one. To change which slice appears first, adjust the sort in the results table.

A pie draws a legend naming each slice. Hide it or move it in the [**Legend**](/docs/explore-analyze/charts/configuration/color-and-stacking#legend) section of the Style tab.
