English
Interface: D3PPieProps
Defined in: core/renderers/pie.ts:34
Props of a pie: its style, the padding between slices, the corner radius, the order of the slices, the radius, how far a hovered slice moves out (explode), whether it reacts to the pointer (hover) and the labels.
Properties
cornerRadius
ts
cornerRadius: number;Defined in: core/renderers/pie.ts:45
Radius of the rounded corners of the slices, in pixels.
explode
ts
explode: number;Defined in: core/renderers/pie.ts:54
Pixels by which the hovered slice moves outwards.
hover
ts
hover: boolean;Defined in: core/renderers/pie.ts:56
Move the hovered slice (asks for an interaction area).
labels
ts
labels: object;Defined in: core/renderers/pie.ts:60
The labels written on the slices: whether, which slices have one, their color and how they are written.
color
ts
color: string;Color of the labels.
enabled
ts
enabled: boolean;format?
ts
format?: (slice) => string;Parameters
slice
Returns
string
minPercent
ts
minPercent: number;Slices smaller than this share (0 to 1) get no label.
padAngle
ts
padAngle: number;Defined in: core/renderers/pie.ts:43
Gap between slices, in degrees.
radius
ts
radius: [number, number];Defined in: core/renderers/pie.ts:52
Inner and outer radius as fractions of the ring of the polar system ([0, 1] fills it). Several pies on one chart can be nested by giving each its own range.
sort
ts
sort: "none" | "ascending" | "descending";Defined in: core/renderers/pie.ts:47
The order of the slices: the order of the data, or by value.
style
ts
style: D3PRendererStyleBase & object;Defined in: core/renderers/pie.ts:36
The style: the colors of the slices (by position, cycled), and the stroke between them.
Type Declaration
colors?
ts
colors?: string[];Slice colors, by position in the data (cycled); default: a categorical palette.
stroke
ts
stroke: string;strokeWidth
ts
strokeWidth: number;