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
Setter for the anchor of marker.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| anchor | anychart.enums.Anchor | string | 'center' | Marker anchor. |
Returns:
anychart.core.gantt.elements.Marker - Self instance for method chaining.Try it:
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:
| Name | Type | Default | Description |
|---|---|---|---|
| fill | anychart.graphics.vector.Fill | Lightened fill value of related timeline element | - Fill settings. |
Returns:
anychart.core.gantt.elements.Marker - Self instance for method chaining.Try it:
offsetX
Getter for the offset by X of marker.
Returns:
number | string - Marker offset by X.Try it:
Setter for the offset by X of marker.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| offset | number | 0 | Offset by X to set. |
Returns:
anychart.core.gantt.elements.Marker - Self instance for method chaining.Try it:
offsetY
Setter for the offset by Y of marker.
Params:
| Name | Type | Default | Description |
|---|---|---|---|
| offset | number | 0 | Offset by Y to set. |
Returns:
anychart.core.gantt.elements.Marker - Self instance for method chaining.Try it:
rotation
Getter for the rotate a marker around an anchor.
Returns:
number - Rotation angle in degrees.Try it:
Setter for the rotate a marker around an anchor.
Detailed description
(anychart.graphics.vector.Element). Method resets transformation and applies a new one.
Params:
| Name | Type | Description |
|---|---|---|
| angle | number | Rotation angle in degrees. |
Returns:
anychart.core.gantt.elements.Marker - Self instance for method chaining.Try it:
size
Setter for the size of marker.
Params:
| Name | Type | Description |
|---|---|---|
| size | number | Marker size. |
Returns:
anychart.core.gantt.elements.Marker - Self instance for method chaining.Try it:
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:
| Name | Type | Default | Description |
|---|---|---|---|
| stroke | anychart.graphics.vector.Stroke | Lightened stroke value of related timeline element | - Stroke settings. |
Returns:
anychart.core.gantt.elements.Marker - Self instance for method chaining.Try it:
type
Setter for the type of custom marker.
Params:
| Name | Type | Description |
|---|---|---|
| type | anychart.enums.MarkerType | string | Marker type settings. |
Returns:
anychart.core.gantt.elements.Marker - Self instance for method chaining.Try it:
