Skip to main content

Interface: SliceGeometry

Defined in: src/mobjects/graphing/PieChart.ts:30

Geometry of one slice, derived from the data. Non-positive values are skipped, so index is the position in the original values array and is not always contiguous.

Properties​

angle​

angle: number

Defined in: src/mobjects/graphing/PieChart.ts:40

Sweep angle of the slice, in radians (proportional to the value).


fraction​

fraction: number

Defined in: src/mobjects/graphing/PieChart.ts:36

Fraction of the total this slice occupies, in [0, 1].


index​

index: number

Defined in: src/mobjects/graphing/PieChart.ts:32

Index of this value in the original values array.


startAngle​

startAngle: number

Defined in: src/mobjects/graphing/PieChart.ts:38

Start angle of the slice sweep, in radians.


value​

value: number

Defined in: src/mobjects/graphing/PieChart.ts:34

The (positive) data value for this slice.