class anychart.core.axes.Circular Improve this Doc
Extends: anychart.core.VisualBase
Circular axis class. Learn more about circular axis.
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.Try it:
Setter for the rounding of corners.
Round off the ends of axes to the specified radius.
Params:
Name | Type | Default | Description |
---|---|---|---|
radius | null | number | string | '0%' | Radius for rounding of corners |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
drawFirstLabel
Setter for the first label drawing flag.
Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | true | Drawing flag. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
drawLastLabel
Setter for the last label drawing flag.
Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | true | Drawing flag. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
enabled
Getter for the element state (enabled or disabled).
Returns:
boolean - Element state.Try it:
Setter for the element enabled state.
Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | true | Enabled state to set. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining. Example.
if (!element.enabled()) element.enabled(true);
Try it:
fill
Setter for axis fill settings using an array, an object or a string.
Learn more about coloring.
Params:
Name | Type | Default | Description |
---|---|---|---|
color | anychart.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.
Detailed description
Note: If color is set as a string (e.g. 'red .5') it has a priority over opt_opacity, which
means: color set like this rect.fill('red 0.3', 0.7) will have 0.3 opacity.
Params:
Name | Type | Description |
---|---|---|
color | string | Color as a string. |
opacity | number | Color opacity (0 to 1). |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
Linear gradient axis fill.
Learn more about coloring.
Params:
Name | Type | Description |
---|---|---|
keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Gradient keys. |
angle | number | Gradient angle. |
mode | boolean | anychart.graphics.vector.Rect | Object | Gradient mode. |
opacity | number | Gradient opacity. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
Radial axis fill.
Learn more about coloring.
Params:
Name | Type | Description |
---|---|---|
keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Color-stop gradient keys. |
cx | number | X ratio of center radial gradient. |
cy | number | Y ratio of center radial gradient. |
mode | anychart.graphics.math.Rect | If defined then userSpaceOnUse mode, else objectBoundingBox. |
opacity | number | Opacity of the gradient. |
fx | number | X ratio of focal point. |
fy | number | Y ratio of focal point. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
Image axis fill.
Learn more about coloring.
Params:
Name | Type | Description |
---|---|---|
imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
labels
Setter for labels.
Detailed description
Sets axis labels settings depending on parameter type:
- null/boolean - disable or enable axis labels.
- object - sets axis labels settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | boolean | null | true | Labels settings. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.minorLabels
Setter for minor labels.
Detailed description
Sets minor labels settings depending on parameter type:
- null/boolean - disable or enable minor labels.
- object - sets minor labels settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | boolean | null | false | Minor labels settings. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.minorTicks
Setter for minor axis ticks.
Detailed description
Sets minor axis ticks settings depending on parameter type:
- null/boolean - disable or enable minor axis ticks.
- object - sets minor axis ticks settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | 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.Try it:
Setter for labels overlap mode.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.enums.LabelsOverlapMode | string | boolean | 'noOverlap' | Value to set. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.radius
Getter for the axis radius.
Detailed description
This method can be used as getter only if the value has been previously set.
Returns:
string - The axis radius.Try it:
Setter for the axis radius.
Detailed description
Null returns auto calculated bar pointer radius.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | null | number | string | undefined | Value to set. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
scale
Getter for the axis scale.
Try it:
Setter for the axis scale.
Detailed description
Use anychart.scales.ScatterBase#maximum and anychart.scales.ScatterBase#minimum methods to set scale.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | anychart.enums.GaugeScaleTypes | string | anychart.scales.Linear | Object | anychart.scales.Linear | Scale settings to set. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
startAngle
Getter for the start angle.
Detailed description
This method can be used as getter only if the value has been previously set.
Returns:
number - The start angle.Try it:
Setter for the start angle.
Detailed description
Null returns auto calculated bar pointer radius.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | null | string | number | null | Value to set. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
sweepAngle
Getter for the sweep angle.
Detailed description
This method can be used as getter only if the value has been previously set.
Returns:
number - The sweep angle.Try it:
Setter for the sweep angle.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | null | string | number | undefined | Value to set. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
ticks
Setter for circular ticks.
Detailed description
Learn more about circular ticks.
Sets axis ticks settings depending on parameter type:
Sets axis ticks settings depending on parameter type:
- null/boolean - disable or enable axis ticks.
- object - sets axis ticks settings.
Params:
Name | Type | Default | Description |
---|---|---|---|
settings | Object | boolean | null | true | Ticks settings. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.width
Getter for the axis width.
Detailed description
This method can be used as getter only if the value has been previously set.
Returns:
string - The axis width.Try it:
Setter for the axis width.
Detailed description
Null returns auto calculated bar pointer radius.
Params:
Name | Type | Default | Description |
---|---|---|---|
value | null | number | string | undefined | Value to set. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it:
zIndex
Setter for the Z-index of the element.
Detailed description
The bigger the index - the higher the element position is.
Params:
Name | Type | Default | Description |
---|---|---|---|
zIndex | number | 0 | Value to set. |
Returns:
anychart.core.axes.Circular - Self instance for method chaining.Try it: