Skip to content

Class: D3PCursorRadiusAxisRenderer ​

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

A radius axis whose spoke turns to follow the pointer: it lies on the line from the center of the disc to the cursor, as long as the cursor is where the system reads it (over the disc, or within the reach of the system around it); farther, the spoke stays where it was.

Extends ​

Constructors ​

Constructor ​

ts
new D3PCursorRadiusAxisRenderer(opts?): D3PCursorRadiusAxisRenderer;

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

Parameters ​

opts? ​

D3PCursorRadiusAxisRendererOptions = {}

Returns ​

D3PCursorRadiusAxisRenderer

Overrides ​

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

D3PRadiusAxisRenderer.assertSystem


attach() ​

ts
attach(__namedParameters): void;

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

Subscribes to the pointer, to follow it.

Parameters ​

__namedParameters ​

D3PAxisAttachContext

Returns ​

void

Overrides ​

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

D3PRadiusAxisRenderer.bind


detach() ​

ts
detach(chart): void;

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

Releases the subscriptions of the chart.

Parameters ​

chart ​

D3PChart

Returns ​

void

Overrides ​

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

Inherited from ​

D3PRadiusAxisRenderer.draw


spokeAngle() ​

ts
protected spokeAngle(chart, sys): number;

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

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

Parameters ​

chart ​

D3PChart

sys ​

D3PPolarSystem

Returns ​

number

Overrides ​

D3PRadiusAxisRenderer.spokeAngle

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.

Inherited from ​

D3PRadiusAxisRenderer.fixedAngle


name ​

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

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

The name of the renderer.

Overrides ​

D3PRadiusAxisRenderer.name


positions ​

ts
readonly positions: readonly ["radius"];

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

The positions of axes the renderer can draw.

Inherited from ​

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

Inherited from ​

D3PRadiusAxisRenderer.systemKinds