Skip to content

Interface: D3PPieSlice ​

Defined in: core/renderers/pie.ts:14

A slice of a pie: its category, value, share, color and angles.

Properties ​

color ​

ts
color: string;

Defined in: core/renderers/pie.ts:24

Color of the slice: from style.colors, by position.


endAngle ​

ts
endAngle: number;

Defined in: core/renderers/pie.ts:28

Angle where the slice ends, in radians.


key ​

ts
key: string;

Defined in: core/renderers/pie.ts:16

The category (its label); slices sharing a label share their legend entry.


label ​

ts
label: string;

Defined in: core/renderers/pie.ts:18

The label of the category.


percent ​

ts
percent: number;

Defined in: core/renderers/pie.ts:22

Share of the slices currently shown (0 to 1).


startAngle ​

ts
startAngle: number;

Defined in: core/renderers/pie.ts:26

Screen angles in radians (0 = up, clockwise on a clockwise system).


value ​

ts
value: number;

Defined in: core/renderers/pie.ts:20

The value of the category.