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

class anychart.core.cartesian.series.Marker Improve this Doc

Extends: anychart.core.cartesian.series.Base

Define Marker series type.
Note: Use method anychart.charts.Cartesian#marker to get this series.

Methods Overview

Miscellaneous
hoverSize()Getter for hovered marker size
hoverType()Getter for current hovered marker type settings.
size()Getter for marker size
type()Getter for current marker type settings.

Methods Description

hoverSize

Getter for hovered marker size

Returns:

number - Current hovered marker size.
Setter for hovered marker size.

Params:

Name Type Default Description
value number
12
Value to set.

Try it:

hoverType

Getter for current hovered marker type settings.

Returns:

string anychart.enums.MarkerType function - Markers type settings.
Setter for hovered marker type settings.

Params:

Name Type Default Description
value string | anychart.enums.MarkerType | function
anychart.enums.MarkerType.STAR5
Type or custom drawer. Function for a custom marker should look like this: function(path, x, y, size){ // path - anychart.graphics.vector.Path // x, y - marker position // size - marker size ... //do something return path; }.

size

Getter for marker size

Returns:

number - Current marker size.
Setter for marker size.

Params:

Name Type Default Description
value number
10
Value to set.

Try it:

type

Getter for current marker type settings.

Returns:

string anychart.enums.MarkerType function - Markers type settings.
Setter for marker type settings.

Params:

Name Type Default Description
value string | anychart.enums.MarkerType | function
anychart.enums.MarkerType.STAR5
Type or custom drawer. Function for a custom marker should look like this: function(path, x, y, size){ // path - anychart.graphics.vector.Path // x, y - marker position // size - marker size ... //do something return path; }.