Skip to content

Interface: PieOptions

Defined in: layers/pie.ts:14

Properties

center?

ts
optional center?: [number, number];

Defined in: layers/pie.ts:22

Center in data space. Default [0, 0].


colormap?

ts
optional colormap?: ColormapSpec;

Defined in: layers/pie.ts:20

Color slices by index through this colormap instead of the palette.


colors?

ts
optional colors?: (string | Color)[];

Defined in: layers/pie.ts:18

Explicit per-slice colors; falls back to colormap, then a default palette.


innerRadius?

ts
optional innerRadius?: number;

Defined in: layers/pie.ts:26

Inner radius (> 0 makes a donut). Default 0.


name?

ts
optional name?: string;

Defined in: layers/pie.ts:31


radius?

ts
optional radius?: number;

Defined in: layers/pie.ts:24

Outer radius in data units. Default 1.


renderType?

ts
optional renderType?: RenderType;

Defined in: layers/pie.ts:30

Buffer-usage hint; set "dynamic" when streaming via setData. Default "static".


startAngle?

ts
optional startAngle?: number;

Defined in: layers/pie.ts:28

Angle of the first slice edge, radians. Default Math.PI / 2 (12 o'clock).


values

ts
values: ArrayLike<number>;

Defined in: layers/pie.ts:16

Slice magnitudes (need not sum to 1 — they are normalized).


yAxis?

ts
optional yAxis?: string;

Defined in: layers/pie.ts:32

MIT licensed. WebGL2 required.