Skip to content

Class: D3PAngleAxisRenderer ​

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

The angle axis: a ring at the outer radius, with a tick (and a spoke of grid) per value.

Extends ​

Extended by ​

Constructors ​

Constructor ​

ts
new D3PAngleAxisRenderer(): D3PAngleAxisRenderer;

Returns ​

D3PAngleAxisRenderer

Inherited from ​

D3PAxisRenderer.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 ​

D3PAxisRenderer.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 ​

D3PAxisRenderer.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 ​

D3PAxisRenderer.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 ​

D3PAxisRenderer.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

Overrides ​

D3PAxisRenderer.draw


drawRing() ​

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

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

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


drawRings() ​

ts
protected drawRings(
   _ctx, 
   _g, 
   _angles, 
   _grid
): void;

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

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

Properties ​

name ​

ts
readonly name: string = 'D3PAngleAxisRenderer';

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

The name of the renderer.

Overrides ​

D3PAxisRenderer.name


positions ​

ts
readonly positions: readonly ["angle"];

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

The positions of axes the renderer can draw.

Overrides ​

D3PAxisRenderer.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).

Overrides ​

D3PAxisRenderer.systemKinds