pie
Use for label × non-negative value slices. Slice sizes stay raw; they are not forced to 100.
Optional innerRadius in [0, 1] for a donut hole (still type: pie). Omit keeps the theme default. Avoid negative values and non-part-to-whole comparisons better shown as bars.
x label · y number ≥ 0 · series ignored
Rules. Slice sizes as given. Do not normalize to 100. Optional innerRadius (see field table). Still type: pie — never invent donut.
Example
chart
markvis: 2
type: pie
innerRadius: 0.45
title: Share by region
x: region
y: share
region,share
East,40
West,35
North,25| region | share |
|---|---|
| East | 40 |
| West | 35 |
| North | 25 |
When the block is wrong
The rows stay, with one line that names the error.
chart
markvis: 2
type: pie
layout: stacked
title: Wrong-type extra field
x: region
y: share
region,share
East,40
West,35| region | share |
|---|---|
| East | 40 |
| West | 35 |
E_UNKNOWN_FIELD: undeclared fence field: layout
Generated from packages/types/pie/ and the type's row in SPEC.md.