Skip to content

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
Share by region pie chart. Share by region. x=region. y=share. 3 rows. slice sizes are raw values and are not normalized to 100. Share by regionShare by region East · 40 West · 35 North · 25
Share by region
regionshare
East40
West35
North25

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
regionshare
East40
West35

E_UNKNOWN_FIELD: undeclared fence field: layout

Generated from packages/types/pie/ and the type's row in SPEC.md.

0.0.13 lives under legacy/