Skip to content

Class: D3PRadarAngleAxisRenderer ​

Defined in: core/axis-renderer.ts:238

The angle axis of a radar chart: categories on a band scale, a polygon instead of the outer circle, and polygonal grid rings at the ticks of the radius axis (turn the radius axis' own grid off, it would draw circles).

Extends ​

Constructors ​

Constructor ​

ts
new D3PRadarAngleAxisRenderer(): D3PRadarAngleAxisRenderer;

Returns ​

D3PRadarAngleAxisRenderer

Inherited from ​

D3PAngleAxisRenderer.constructor

Methods ​

assertSystem() ​

ts
assertSystem(axis, system): void;

Defined in: core/axis-renderer.ts:80

Checks the coordinate system the axis ended up in.

Parameters ​

axis ​

D3PAxis

system ​

D3PCoordinateSystem

Returns ​

void

Inherited from ​

D3PAngleAxisRenderer.assertSystem


attach()? ​

ts
attach?(ctx): void;

Defined in: core/axis-renderer.ts:89

Called when the axis joins a chart: subscribe to what the drawing depends on, and use redraw.

Parameters ​

ctx ​

D3PAxisAttachContext

Returns ​

void

Inherited from ​

D3PAngleAxisRenderer.attach


bind() ​

ts
bind(axis): void;

Defined in: core/axis-renderer.ts:67

Called by the axis when it is built with this renderer.

Parameters ​

axis ​

D3PAxis

Returns ​

void

Inherited from ​

D3PAngleAxisRenderer.bind


detach()? ​

ts
detach?(chart): void;

Defined in: core/axis-renderer.ts:91

Called when the axis leaves a chart: release what attach took.

Parameters ​

chart ​

D3PChart

Returns ​

void

Inherited from ​

D3PAngleAxisRenderer.detach


draw() ​

ts
draw(ctx): void;

Defined in: core/axis-renderer.ts:187

Draws the angle axis: a ring with a tick and a label for each value, and a spoke for each grid line.

Parameters ​

ctx ​

D3PAxisDrawContext

Returns ​

void

Inherited from ​

D3PAngleAxisRenderer.draw


drawRing() ​

ts
protected drawRing(
   group, 
   g, 
   angles
): void;

Defined in: core/axis-renderer.ts:241

The line at the outer radius: a circle, or the arc the system covers (a polygon for a radar).

Parameters ​

group ​

Sel

g ​

D3PPolarGeometry

angles ​

number[]

Returns ​

void

Overrides ​

D3PAngleAxisRenderer.drawRing


drawRings() ​

ts
protected drawRings(
   ctx, 
   g, 
   angles, 
   grid
): void;

Defined in: core/axis-renderer.ts:246

Extra grid drawn with the spokes (a radar's polygons); the radius axis draws the circles.

Parameters ​

ctx ​

D3PAxisDrawContext

g ​

D3PPolarGeometry

angles ​

number[]

grid ​

Sel

Returns ​

void

Overrides ​

D3PAngleAxisRenderer.drawRings

Properties ​

name ​

ts
readonly name: "D3PRadarAngleAxisRenderer" = 'D3PRadarAngleAxisRenderer';

Defined in: core/axis-renderer.ts:239

The name of the renderer.

Overrides ​

D3PAngleAxisRenderer.name


positions ​

ts
readonly positions: readonly ["angle"];

Defined in: core/axis-renderer.ts:174

The positions of axes the renderer can draw.

Inherited from ​

D3PAngleAxisRenderer.positions


systemKinds ​

ts
readonly systemKinds: readonly ["polar"];

Defined in: core/axis-renderer.ts:175

The kinds of coordinate system the renderer can draw in (cartesian, polar).

Inherited from ​

D3PAngleAxisRenderer.systemKinds