English
Class: D3PRadarAngleAxisRenderer
Defined in: core/axis-renderer.ts:238
The angle axis of a radar chart: categories on a band scale, a polygon instead of the outer circle, and polygonal grid rings at the ticks of the radius axis (turn the radius axis' own grid off, it would draw circles).
Extends
Constructors
Constructor
ts
new D3PRadarAngleAxisRenderer(): D3PRadarAngleAxisRenderer;Returns
D3PRadarAngleAxisRenderer
Inherited from
D3PAngleAxisRenderer.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
D3PAngleAxisRenderer.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
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
Inherited from
drawRing()
ts
protected drawRing(
group,
g,
angles
): void;Defined in: core/axis-renderer.ts:241
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
Overrides
drawRings()
ts
protected drawRings(
ctx,
g,
angles,
grid
): void;Defined in: core/axis-renderer.ts:246
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
Overrides
D3PAngleAxisRenderer.drawRings
Properties
name
ts
readonly name: "D3PRadarAngleAxisRenderer" = 'D3PRadarAngleAxisRenderer';Defined in: core/axis-renderer.ts:239
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.
Inherited from
D3PAngleAxisRenderer.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).