Pie chart
Show shares of one whole as a pie, a donut or a gauge.
- Where
- Toolbar, charts group
- Makes
- A chart layer set to Pie
A pie chart draws each row as a slice, with its angle set by its share of the total. A row with several value columns shows their sum. A new pie starts as a donut with its values hidden. Pick Pie chart in the toolbar’s charts group and drag a box, or set an existing chart’s Type to Pie.
Shared controls are in the overview. All four looks apply. Soft fades each slice from the background at the hole to its color at the rim, and with Outline, neighboring slices share one edge.
Slices
A share of half the ring’s thickness. At 100, each slice end is a semicircle.
Auto puts the hole at 55% of the radius, and at or above the radius the pie is solid.
Transparent space between slices, measured at the rim.
Where the first slice starts, clockwise from twelve o’clock.
When off, the gaps narrow toward the center. When on, they keep one width. Not available when Gap is 0.
The angle all the slices cover together; 180 is a half circle.
Text and key
Where the slice names go:
- None hides them.
- Key below or Key above shows a row of swatches and names.
- Key left or Key right shows them in a column.
- Around the rim puts each name beside its slice.
- Around, with lines adds a line in the slice color that ends 8 px from the name.
Each share as a percentage inside its slice. The text color is Auto, which picks light or dark for each slice, or pick a theme color in the same menu to use one color for all values.
With Names on a key position, the Key group has Alignment (except for Key left and Key right), Gap and Margin, and Names sets the position.
Layout
The Layout section below the Chart section has Center offset (0 to 2000 px, default 0). It moves every slice outward along its center line, along with its name and share. The radius stays the same, and the chart’s box grows by the offset.
Styling the slices
Each slice is its own layer, named after its row and filled with that row’s chart color. ⌘ click or double-click a slice to select it. Linear, radial and angular gradients are laid across the whole pie rather than one slice. A radial gradient runs from hole to rim and stays right when Thickness changes.
- Double-click to select a slice
- Center offset pulls it out
One value out of 100 is a pie of the value and its remainder. Use a table of Part and Value: Sold 82 and Remaining 18. Set Span to 180, Rotation to -90, Rounding to 100 and Names to None. Give the Remaining slice a muted fill at 30% opacity, and add a text “82%” under the arc.
Combining with other features
- Builds. The default build reveals the slices around the circle, and a stagger runs over the slices. With Click to reveal each on the chart’s build, each slice waits for its own click, in table order, for up to 24 slices. See Animating charts.
- Converting. A pie shares Rounding, Rotation and Span with the radial chart.
Limits
- With more than about twelve slices, names around the rim can overlap near the top. Use a key.
- You can’t move a key name apart from its swatch.
- Click to reveal each isn’t available for more than 24 slices.