English
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
system
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
Returns
void
Overrides
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
Returns
void
Inherited from
detach()
ts
detach(chart): void;Defined in: core/axis-renderer.ts:389
Releases the subscriptions of the chart.
Parameters
chart
Returns
void
Overrides
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
Returns
void
Inherited from
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
sys
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
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).