AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.4.0 version of this document. Switch to the 8.3.0 version to see the up to date information.

class anychart.core.axisMarkers.Line Improve this Doc

Extends: anychart.core.VisualBase

Line marker.

Methods Overview

Miscellaneous
isHorizontal()Whether marker is horizontal
layout()Get/set line marker layout.
scale()Getter for the axis scale.
stroke()Get/set line marker stroke.
value()Get/set value.

Methods Description

isHorizontal

Whether marker is horizontal

Returns:

boolean - If the marker is horizontal.

layout

Get/set line marker layout.

Params:

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

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.Line - Self instance for method chaining.

stroke

Get/set line marker stroke.

Params:

Name Type Description
value string | anychart.graphics.vector.Stroke LineMarker line settings.

Returns:

string anychart.graphics.vector.Stroke anychart.core.axisMarkers.Line - LineMarker line settings or LineMarker instance for method chaining.

value

Get/set value.

Params:

Name Type Description
newValue number LineMarker value settings.

Returns:

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