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

class anychart.core.axisMarkers.Text Improve this Doc

Extends: anychart.core.Text

Text marker.

Methods Overview

Miscellaneous
align()Get/Set align.
anchor()Get/set text marker anchor settings.
height()Getter for separator height.
isHorizontal()Defines marker layout
layout()Get/set layout.
offsetX()Get/set offset x.
offsetY()Get/set offset y.
rotation()Get/set rotation in degrees.
scale()Getter for the axis scale.
text()Get/Set text marker settings.
value()Get/set value.
width()Getter for separator width.

Methods Description

align

Get/Set align.

Params:

Name Type Description
value anychart.enums.Align TextMarker align.

anchor

Get/set text marker anchor settings.

Params:

Name Type Description
value anychart.enums.Anchor | string Text marker anchor settings.

Returns:

anychart.core.axisMarkers.Text anychart.enums.Anchor - Text marker anchor settings or itself for method chaining.

height

Getter for separator height.

Returns:

number string null - Current height.
Setter for separator height.

Params:

Name Type Description
value number | string | null Value to set.

Returns:

anychart.core.axisMarkers.Text - An instance of the anychart.core.axisMarkers.Text class for method chaining.

isHorizontal

Defines marker layout

Returns:

boolean - If the marker is horizontal.

layout

Get/set layout.

Params:

Name Type Description
value anychart.enums.Layout TextMarker layout.

offsetX

Get/set offset x.

Params:

Name Type Description
newValue number | string TextMarker value settings.

Returns:

number string anychart.core.axisMarkers.Text - TextMarker value settings or TextMarker instance for method chaining.

offsetY

Get/set offset y.

Params:

Name Type Description
newValue number | string TextMarker value settings.

Returns:

number string anychart.core.axisMarkers.Text - TextMarker value settings or TextMarker instance for method chaining.

rotation

Get/set rotation in degrees. If null is provided then rotation angle depends on layout: vertical = -90 degrees; horizontal = 0 degrees.

Params:

Name Type Description
value number rotation.

Returns:

number anychart.core.axisMarkers.Text - Rotation or self for chaining.

scale

Getter for the axis scale.

Returns:

anychart.scales.Base - Axis scale.
Setter for axis scale.

Params:

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

Returns:

anychart.core.axisMarkers.Text - An instance of the anychart.core.axisMarkers.Text class for method chaining.

text

Get/Set text marker settings.

Params:

Name Type Description
value string TextMarker text settings.

Returns:

string anychart.core.axisMarkers.Text - TextMarker line settings or TextMarker instance for method chaining.

value

Get/set value.

Params:

Name Type Description
newValue number TextMarker value settings.

Returns:

number anychart.core.axisMarkers.Text - TextMarker value settings or LineMarker instance for method chaining.

width

Getter for separator width.

Returns:

number string null - Current width.
Setter for separator width.

Params:

Name Type Description
value number | string | null Value to set.

Returns:

anychart.core.axisMarkers.Text - An instance of the anychart.core.axisMarkers.Text class for method chaining.