English
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
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
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
Returns
void
Inherited from
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:91
Called when the axis leaves a chart: release what attach took.
Parameters
chart
Returns
void
Inherited from
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
Returns
void
Overrides
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
_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
_g
_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
positions
ts
readonly positions: readonly ["angle"];Defined in: core/axis-renderer.ts:174
The positions of axes the renderer can draw.
Overrides
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).