AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.axisMarkers.CircularRange Improve this Doc

Extends: anychart.core.VisualBase

Circular range.

Methods Overview

Specific settings
axisIndex()Axis index.
cornersRounding()The rounding of circular ranges
Coloring
fill()Fill settings.
Interactivity
enabled()Element state (enabled or disabled).
Size and Position
endSize()Size for end range.
from()Starting range value.
position()Range position.
radius()Range radius.
startSize()Size for start range.
to()Ending range value.
zIndex()Z-index of the element.

Methods Description

axisIndex

Getter for the axis index.

Returns:

number - Axis index.
Setter for the axis index.

Params:

NameTypeDefaultDescription
indexnumber
0
Axis index to set.

Returns:

anychart.core.axisMarkers.CircularRange - Self instance for method chaining.

cornersRounding

Getter for the rounding of circular ranges.

Returns:

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

Params:

NameTypeDefaultDescription
valuenull | number | string
'0%'
Radius for rounding of circular ranges.

Returns:

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

endSize

Getter for the range end size.

Returns:

string - Range end size.
Setter for the range end size.

Params:

NameTypeDefaultDescription
valuenull | number | string
'10%'
Value to set.

Returns:

anychart.core.axisMarkers.CircularRange - Self instance for method chaining.

fill

Getter for the range fill.

Returns:

anychart.graphics.vector.Fill - Range fill settings.
See listing
var range = chart.range();
var fill = range.fill();
Setter for range 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)>
{color: '#7c868e', opacity: 0.7}
Color as an array, an object or a string.

Returns:

anychart.core.axisMarkers.CircularRange - Self instance for method chaining.

from

Getter for the starting range value.

Returns:

number - The starting range value.
Setter for the starting range value.

Params:

NameTypeDescription
fromValuenumber'From' value to set.

Returns:

anychart.core.axisMarkers.CircularRange - Self instance for method chaining.

position

Getter for the range position.

Returns:

anychart.enums.GaugeSidePosition | string - Range position.
Setter for the range position.

Params:

NameTypeDefaultDescription
positionTypeanychart.enums.GaugeSidePosition | string
'center'
Value to set.

Returns:

anychart.core.axisMarkers.CircularRange - Self instance for method chaining.

radius

Getter for the range radius.

Returns:

string - Range radius.
Setter for the range radius.

Params:

NameTypeDefaultDescription
valuenumber | string | null
undefined
Radius to set.

Returns:

anychart.core.axisMarkers.CircularRange - Self instance for method chaining.

startSize

Getter for the range start size.

Returns:

string - Range start size.
Setter for the range start size.

Params:

NameTypeDefaultDescription
valuenull | number | string
'0%'
Value to set.

Returns:

anychart.core.axisMarkers.CircularRange - Self instance for method chaining.

to

Getter for the ending range value.

Returns:

number - The ending range value.
Setter for the ending range value.

Params:

NameTypeDescription
toValuenumber'To' value to set.

Returns:

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