A pie layer's data is a flat PiePoint[] — one entry per slice, in the
order the slices are drawn — never the nested group array the bar-family
types use.
y is strictly numeric, unlike BarPoint.y: it is both the sonified
magnitude and the numerator of the slice's percentage, and a percentage
derived from a string is not a percentage.
There is deliberately no percentage field. The share of the whole is
derived once in the model as y / sum(y) * 100, so an authored percentage
can never disagree with the values it is supposedly derived from.
Data point for one slice of a pie chart.
A pie layer's
datais a flatPiePoint[]— one entry per slice, in the order the slices are drawn — never the nested group array the bar-family types use.yis strictly numeric, unlike BarPoint.y: it is both the sonified magnitude and the numerator of the slice's percentage, and a percentage derived from a string is not a percentage.There is deliberately no
percentagefield. The share of the whole is derived once in the model asy / sum(y) * 100, so an authored percentage can never disagree with the values it is supposedly derived from.