Skip to content

Class: D3PRadiusAxisRenderer ​

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

The radius axis: ticks along a spoke at a fixed angle, and a circle of grid per value.

Extends ​

Extended by ​

Constructors ​

Constructor ​

ts
new D3PRadiusAxisRenderer(opts?): D3PRadiusAxisRenderer;

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

Parameters ​

opts? ​

D3PRadiusAxisRendererOptions = {}

Returns ​

D3PRadiusAxisRenderer

Overrides ​

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:284

Draws the radius axis: ticks along a spoke and a circle of grid for each value.

Parameters ​

ctx ​

D3PAxisDrawContext

Returns ​

void

Overrides ​

D3PAxisRenderer.draw


spokeAngle() ​

ts
protected spokeAngle(_chart, sys): number;

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

Screen angle (radians, 0 = up, clockwise) at which the spoke is drawn right now.

Parameters ​

_chart ​

D3PChart

sys ​

D3PPolarSystem

Returns ​

number

Properties ​

fixedAngle ​

ts
protected readonly fixedAngle: number | undefined;

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

The angle of the spoke, in degrees, if one was given.


name ​

ts
readonly name: string = 'D3PRadiusAxisRenderer';

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

The name of the renderer.

Overrides ​

D3PAxisRenderer.name


positions ​

ts
readonly positions: readonly ["radius"];

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

The positions of axes the renderer can draw.

Overrides ​

D3PAxisRenderer.positions


systemKinds ​

ts
readonly systemKinds: readonly ["polar"];

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

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

Overrides ​

D3PAxisRenderer.systemKinds