Function: computeSliceGeometry()
computeSliceGeometry(
values,startAngle):SliceGeometry[]
Defined in: src/mobjects/graphing/PieChart.ts:55
Compute the sweep angles for a set of values.
Each positive value gets a sweep angle proportional to value / total.
Non-positive values (zero and negative) are skipped and get no slice.
The returned slices sweep counterclockwise from startAngle, in the order
of the input array.
Parameters
values
number[]
The raw data values.
startAngle
number
Angle of the first slice edge, in radians.
Returns
One SliceGeometry per positive value. Empty array if the total is 0.