AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.standalones.axes.Radar Improve this Doc

Extends: anychart.core.axes.Radar

The Radar class contains methods for configuring standalones Radar axes.
This class allow to create custom Radar axes or add them to charts.

Methods Overview

Specific settings
labels()Labels settings.
scale()Scale settings.
ticks()Ticks settings.
Coloring
stroke()Stroke settings.
Interactivity
enabled()Element state (enabled or disabled).
Size and Position
getRemainingBounds()Returns remaining parent bounds to use elsewhere.
parentBounds()Parent bounds for the radar axis.
startAngle()Start angle for the radar axis.
zIndex()Z-index of the element.
Miscellaneous
container()Container for the the radar axis.
draw()Drawing of the radar axis.

Methods Description

container

Getter for the axis container.
Setter for the axis container.

Params:

NameTypeDescription
elementanychart.graphics.vector.Layer | anychart.graphics.vector.Stage | string | ElementThe value to set.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.

draw

Drawing of the radar axis.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.

enabled

Getter for the element state (enabled or disabled).

Returns:

boolean - Element state.
Setter for the element enabled state.

Params:

NameTypeDefaultDescription
enabledboolean
true
Enabled state to set.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.
Example.
if (!element.enabled())
   element.enabled(true);

getRemainingBounds

Returns remaining parent bounds to use elsewhere.

Returns:

anychart.math.Rect - Parent bounds without the space used by the axis.

labels

Getter for axis labels.

Returns:

anychart.core.ui.LabelsFactory - Axis labels instance.
Setter for axis labels.

Params:

NameTypeDefaultDescription
settingsObject | boolean | null
true
Axis labels.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.

parentBounds

Getter for bounds.

Returns:

anychart.math.Rect - Axis parent bounds.
Setter for bounds using single value.

Params:

NameTypeDescription
boundsanychart.math.Rect | Object | nullBounds to set.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.
Setter for bounds using several values.

Params:

NameTypeDescription
leftnumberLeft space.
topnumberTop space.
widthnumberWidth axis.
heightnumberHeight axis.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.

scale

Getter for the axis scale.

Returns:

anychart.scales.Base - Axis scale.
Setter for the axis scale.

Params:

NameTypeDefaultDescription
settingsanychart.scales.Base | anychart.enums.ScaleTypes | string | Object
anychart.scales.Ordinal
Scale settings to set.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.

startAngle

Getter for a start angle.

Returns:

string | number - The start angle.
Setter for a start angle.

Params:

NameTypeDefaultDescription
anglestring | number
0
Start angle to set.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.

stroke

Getter for axis stroke settings.

Returns:

anychart.graphics.vector.Stroke - Axis stroke settings.
See listing
var xAxis = chart.xAxis();
var strokeSettings = xAxis.stroke();
Setter for axis stroke settings. Learn more about stroke settings.

Params:

NameTypeDefaultDescription
coloranychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
"#eaeaea"
Stroke settings.
thicknessnumber
1
Line thickness.
dashpatternstring
Controls the pattern of dashes and gaps used to stroke paths.
lineJoinstring | anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCapstring | anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.
Setter for axis stroke settings using an object.

Params:

NameTypeDescription
settingsObjectObject with stroke settings from anychart.graphics.vector.Stroke

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.

ticks

Getter for axis ticks.

Returns:

anychart.core.axes.Ticks - Axis ticks.
Setter for axis ticks.

Params:

NameTypeDefaultDescription
settingsObject | boolean | null
false
Axis ticks.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.

zIndex

Getter for the Z-index of the element.

Returns:

number - Z-index.
Setter for the Z-index of the element.

Params:

NameTypeDefaultDescription
zIndexnumber
0
Value to set.

Returns:

anychart.standalones.axes.Radar - Self instance for method chaining.