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

class anychart.core.ui.ColorRange Improve this Doc

Extends: anychart.core.axes.Linear

Color range.

Methods Overview

Specific settings
marker()Marker settings.
Size and Position
align()Align setting.
colorLineSize()Color line size.
length()Length setting.

Methods Description

align

Getter for the current color range align setting.

Returns:

anychart.enums.Align - The current color range align.

Try it:

Setter for color range align setting.

Params:

Name Type Default Description
value anychart.enums.Align | string
"center"
Color range align.

Returns:

anychart.core.ui.ColorRange - Color range align or self for chaining.

Try it:

colorLineSize

Getter for the current color line size.

Returns:

number - The current color line size

Try it:

Setter for the color line size.

Params:

Name Type Default Description
value number
20
Value to set.

Returns:

anychart.core.ui.ColorRange - Self instance for method chaining

Try it:

length

Getter for the current color range line length.

Returns:

number string - Color line length.

Try it:

Setter for the current color range line length.

Params:

Name Type Default Description
value string | number
"70%"
Color line length.

Returns:

anychart.core.ui.ColorRange - Color line length.

Try it:

marker

Getter for the current color range marker.

Returns:

anychart.core.ui.MarkersFactory.Marker - Color range marker.

Try it:

Getter for the color range marker.

Params:

Name Type Description
value anychart.core.ui.MarkersFactory.Marker | Object Marker or marker settings.

Returns:

anychart.core.ui.ColorRange - Color range marker.

Try it: