Top
You are looking at an outdated 7.6.0 version of this document. Switch to the 8.0.1 version to see the up to date information.

class anychart.core.axisMarkers.Range Improve this Doc

Extends: anychart.core.VisualBase

Range marker.

Methods Overview

Miscellaneous
fill()Getter for the range marker fill.
from()Getter for the starting range marker value.
isHorizontal()Whether a range marker has horizontal layout.
layout()Getter for the range marker layout.
scale()Getter for the range marker scale.
to()Getter for the ending range marker value.

Methods Description

fill

Getter for the range marker fill.

Returns:

anychart.graphics.vector.Fill - Range marker settings.
Sets fill settings using an object or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
null
Color as an object or a string.

Returns:

anychart.core.axisMarkers.Range - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

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

Try it:

Linear gradient 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.axisMarkers.Range - Self instance for method chaining.

Try it:

Radial gradient 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.axisMarkers.Range - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

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

Try it:

from

Getter for the starting range marker value.

Returns:

number - Current starting range marker value.
Setter for the starting range marker value.

Params:

Name Type Description
value number Value to set.

Returns:

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

Try it:

isHorizontal

Whether a range marker has horizontal layout. Layout is define by method anychart.core.axisMarkers.Range#layout.

Returns:

boolean - Returns true if the range marker's layout is horizontal.

Try it:

layout

Getter for the range marker layout.

Returns:

anychart.enums.Layout string - Current range marker layout.

Try it:

Setter for the range marker layout.

Params:

Name Type Default Description
value anychart.enums.Layout | string
"horizontal"
Range marker layout.

Returns:

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

Try it:

scale

Getter for the range marker scale.

Returns:

anychart.scales.Base - Axis scale.
Setter for the range marker scale.

Params:

Name Type Description
value anychart.scales.Base Value to set.

Returns:

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

Try it:

to

Getter for the ending range marker value.

Returns:

number - Current ending range marker value.
Setter for the ending range marker value.

Params:

Name Type Description
value number Value to set.

Returns:

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

Try it: