AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.axes.Circular Improve this Doc

Methods Overview

Specific settings
cornersRounding()Rounding of corners
minorTicks()Minor ticks settings.
scale()Scale settings.
startAngle()Start angle settings.
sweepAngle()Sweep angle.
ticks()Ticks settings.
Coloring
fill()Fill settings.
Interactivity
enabled()Element state (enabled or disabled).
Labels
drawFirstLabel()Drawing of the first label
drawLastLabel()Drawing of the last label
labels()Labels settings.
minorLabels()Minor labels settings.
overlapMode()Overlap mode for labels.
Size and Position
radius()Axis radius.
width()Axis width.
zIndex()Z-index of the element.

Methods Description

cornersRounding

Getter for the rounding of corners.

Returns:

string - The radius of corners rounding in percent.
Setter for the rounding of corners. Round off the ends of axes to the specified radius.

Params:

NameTypeDefaultDescription
radiusnull | number | string
'0%'
Radius for rounding of corners

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

drawFirstLabel

Getter for the first label drawing flag.

Returns:

boolean - Drawing flag.
Setter for the first label drawing flag.

Params:

NameTypeDefaultDescription
enabledboolean
true
Drawing flag.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

drawLastLabel

Getter for the last label drawing flag.

Returns:

boolean - Drawing flag.
Setter for the last label drawing flag.

Params:

NameTypeDefaultDescription
enabledboolean
true
Drawing flag.

Returns:

anychart.core.axes.Circular - 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.core.axes.Circular - Self instance for method chaining.
Example.
if (!element.enabled())
   element.enabled(true);

fill

Getter for the axis fill color.

Returns:

anychart.graphics.vector.Fill - Axis fill color.
Setter for axis fill settings using an array, an object or a string. Learn more about coloring.

Params:

NameTypeDefaultDescription
coloranychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)>
'#CECECE'
Color as an object, an array or a string.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.
Axis fill color with opacity. Fill as a string or an object.

Params:

NameTypeDescription
colorstringColor as a string.
opacitynumberColor opacity (0 to 1).

Returns:

anychart.core.axes.Circular - Self instance for method chaining.
Linear gradient axis fill. Learn more about coloring.

Params:

NameTypeDescription
keysArray.<(anychart.graphics.vector.GradientKey|string)>Gradient keys.
anglenumberGradient angle.
modeboolean | anychart.graphics.vector.Rect | ObjectGradient mode.
opacitynumberGradient opacity.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.
Radial axis fill. Learn more about coloring.

Params:

NameTypeDescription
keysArray.<(anychart.graphics.vector.GradientKey|string)>Color-stop gradient keys.
cxnumberX ratio of center radial gradient.
cynumberY ratio of center radial gradient.
modeanychart.graphics.math.RectIf defined then userSpaceOnUse mode, else objectBoundingBox.
opacitynumberOpacity of the gradient.
fxnumberX ratio of focal point.
fynumberY ratio of focal point.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

Params:

NameTypeDescription
imageSettingsanychart.graphics.vector.FillObject with settings.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

labels

Getter for labels.

Returns:

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

Params:

NameTypeDefaultDescription
settingsObject | boolean | null
true
Labels settings.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

minorLabels

Getter for minor labels.

Returns:

anychart.core.ui.LabelsFactory - Axis minor labels.
Setter for minor labels.

Params:

NameTypeDefaultDescription
settingsObject | boolean | null
false
Minor labels settings.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

minorTicks

Getter for minor axis ticks.

Returns:

anychart.core.axes.CircularTicks - Minor ticks.
Setter for minor axis ticks.

Params:

NameTypeDefaultDescription
settingsObject | boolean | null
false
Minor ticks settings.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

overlapMode

Getter for labels overlap mode.

Returns:

anychart.enums.LabelsOverlapMode | string - Overlap mode.
Setter for labels overlap mode.

Params:

NameTypeDefaultDescription
valueanychart.enums.LabelsOverlapMode | string | boolean
'noOverlap'
Value to set.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

radius

Getter for the axis radius.

Returns:

string - The axis radius.
Setter for the axis radius.

Params:

NameTypeDefaultDescription
valuenull | number | string
undefined
Value to set.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

scale

Getter for the axis scale.

Params:

NameTypeDefaultDescription
settingsanychart.enums.GaugeScaleTypes | string | anychart.scales.Linear | Object
anychart.scales.Linear
Scale settings to set.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

startAngle

Getter for the start angle.

Returns:

number - The start angle.
Setter for the start angle.

Params:

NameTypeDefaultDescription
valuenull | string | number
null
Value to set.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

sweepAngle

Getter for the sweep angle.

Returns:

number - The sweep angle.
Setter for the sweep angle.

Params:

NameTypeDefaultDescription
valuenull | string | number
undefined
Value to set.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

ticks

Getter for circular ticks.

Returns:

anychart.core.axes.CircularTicks - Axis ticks.
Setter for circular ticks.

Params:

NameTypeDefaultDescription
settingsObject | boolean | null
true
Ticks settings.

Returns:

anychart.core.axes.Circular - Self instance for method chaining.

width

Getter for the axis width.

Returns:

string - The axis width.
Setter for the axis width.

Params:

NameTypeDefaultDescription
valuenull | number | string
undefined
Value to set.

Returns:

anychart.core.axes.Circular - 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.core.axes.Circular - Self instance for method chaining.