Skip to content

Interface: D3PPolarProps ​

Defined in: core/coords.ts:312

Props of a polar system: where the angle starts and which way it goes, the hole, the part of the circle covered, the shift of the center, the padding and the reach of the pointer.

Properties ​

clockwise ​

ts
clockwise: boolean;

Defined in: core/coords.ts:316

Whether the angle grows clockwise (default true).


innerRadius ​

ts
innerRadius: number;

Defined in: core/coords.ts:318

Hole radius as a fraction of the outer radius (0 = full disc, 0.5 = ring).


padding ​

ts
padding: number;

Defined in: core/coords.ts:324

Pixels kept free around the disc, for the angle labels.


reach ​

ts
reach: number;

Defined in: core/coords.ts:330

How far beyond the ring, in pixels, the pointer still counts as being over the system. There it reads the angle and the outer radius, so the tooltip, the markers and the radius axis that follows the pointer keep working around the chart, not only on the disc.


shift ​

ts
shift: [number, number];

Defined in: core/coords.ts:322

Moves the center, as fractions of the outer radius: [0, 0.5] lowers a half disc so that it sits in the middle.


startAngle ​

ts
startAngle: number;

Defined in: core/coords.ts:314

Screen angle (degrees) at which the angle range starts: 0 = up.


sweep ​

ts
sweep: number;

Defined in: core/coords.ts:320

Angle covered by the system, in degrees: 360 is a full circle, 180 a half (gauges, semi-donuts).