AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.gantt.elements.Marker Improve this Doc

Extends: anychart.core.Base

Class representing settings of both start and end markers of anychart.core.gantt.elements.TimelineElement.

Methods Overview

Specific settings
type()Getter for the type of marker.
Coloring
fill()Getter for marker element fill settings. Learn more about coloring.
stroke()Getter for marker element stroke settings. Learn more about coloring.
Size and Position
anchor()Getter for the anchor of marker.
offsetX()Getter for the offset by X of marker.
offsetY()Getter for the offset by Y of marker.
rotation()Getter for the rotate a marker around an anchor.
size()Getter for the size of marker.

Methods Description

anchor

Getter for the anchor of marker.

Returns:

anychart.enums.Anchor | string - Marker anchor.
Setter for the anchor of marker.

Params:

NameTypeDefaultDescription
anchoranychart.enums.Anchor | string
'center'
Marker anchor.

Returns:

anychart.core.gantt.elements.Marker - Self instance for method chaining.

fill

Getter for marker element fill settings. Learn more about coloring.

Returns:

anychart.graphics.vector.Fill - Current marker fill.
Setter for marker element fill settings. Learn more about coloring.

Params:

NameTypeDefaultDescription
fillanychart.graphics.vector.Fill
Lightened fill value of related timeline element
- Fill settings.

Returns:

anychart.core.gantt.elements.Marker - Self instance for method chaining.

offsetX

Getter for the offset by X of marker.

Returns:

number | string - Marker offset by X.
Setter for the offset by X of marker.

Params:

NameTypeDefaultDescription
offsetnumber
0
Offset by X to set.

Returns:

anychart.core.gantt.elements.Marker - Self instance for method chaining.

offsetY

Getter for the offset by Y of marker.

Returns:

number - Markers offset by Y.
Setter for the offset by Y of marker.

Params:

NameTypeDefaultDescription
offsetnumber
0
Offset by Y to set.

Returns:

anychart.core.gantt.elements.Marker - Self instance for method chaining.

rotation

Getter for the rotate a marker around an anchor.

Returns:

number - Rotation angle in degrees.
Setter for the rotate a marker around an anchor.

Params:

NameTypeDescription
anglenumberRotation angle in degrees.

Returns:

anychart.core.gantt.elements.Marker - Self instance for method chaining.

size

Getter for the size of marker.

Returns:

number - Size of marker.
Setter for the size of marker.

Params:

NameTypeDescription
sizenumberMarker size.

Returns:

anychart.core.gantt.elements.Marker - Self instance for method chaining.

stroke

Getter for marker element stroke settings. Learn more about coloring.

Returns:

anychart.graphics.vector.Stroke - Current marker stroke.
Setter for marker element stroke settings. Learn more about coloring.

Params:

NameTypeDefaultDescription
strokeanychart.graphics.vector.Stroke
Lightened stroke value of related timeline element
- Stroke settings.

Returns:

anychart.core.gantt.elements.Marker - Self instance for method chaining.

type

Getter for the type of marker.

Returns:

anychart.enums.MarkerType | string - Markers type.
Setter for the type of custom marker.

Params:

NameTypeDescription
typeanychart.enums.MarkerType | stringMarker type settings.

Returns:

anychart.core.gantt.elements.Marker - Self instance for method chaining.