AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.6.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 a line marker has horizontal layout.
layout()Getter for the line marker layout.
scale()Getter for the line marker scale.
stroke()Getter for the line marker stroke.
value()Getter for the line marker value.

Methods Description

isHorizontal

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

Returns:

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

Try it:

layout

Getter for the line marker layout.

Returns:

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

Try it:

Setter for the line marker layout.

Params:

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

Returns:

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

Try it:

scale

Getter for the line marker scale.

Returns:

anychart.scales.Base - Current axis scale.
Setter for the line marker scale.

Params:

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

Returns:

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

Try it:

stroke

Getter for the line marker stroke.

Returns:

string anychart.graphics.vector.Stroke - Line marker settings.
Setter for the line marker stroke.

Params:

Name Type Default Description
stroke anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null
'#DC0A0A 1'
Stroke settings.
thickness number
1
Line thickness.
dashpattern string
'none'
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
'miter'
Line joint style.
lineCap anychart.graphics.vector.StrokeLineCap
'square'
Line cap style.

Returns:

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

Try it:

value

Getter for the line marker value.

Returns:

number - LineMarker value settings.
Setter for the line marker value.

Params:

Name Type Description
newValue number Line marker value settings.

Returns:

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

Try it: