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

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

Extends: anychart.core.polar.series.Base

Define Marker series type.
Note: Better for use method anychart.charts.Polar#marker.

Methods Overview

Specific settings
hoverSize()Marker type settings on hover state.
hoverType()Marker type settings on hover state.
size()Marker size settings.
type()Marker type settings.
Coloring
fill()Fill settings.
hatchFill()Hatch fill settings.
hoverFill()Fill settings on hover state.
hoverHatchFill()Hatch fill settings on hover state.
hoverStroke()Stroke settings on hover state.
stroke()Stroke settings.
Interactivity
unhover()Removes hover from the series point or series.
Miscellaneous
selectType()Getter/setter for current selected marker type settings.

Methods Description

fill

Getter for current series fill color.

Returns:

anychart.graphics.vector.Fill - Current fill color.
Sets fill settings using an object or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
null
Color as an object or a string.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.
Sets fill settings using function.

Params:

Name Type Default Description
fillFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return fillValue; // type anychart.graphics.vector.Fill }.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining. chaining.

Try it:

Fill color with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

hatchFill

Getter for current hatch fill settings.
Setter for hatch fill settings. Learn more about hatch fill settings.

Params:

Name Type Default Description
patternFillOrType anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill | function | anychart.graphics.vector.HatchFill.HatchFillType | string
false
PatternFill or HatchFill instance or type of hatch fill.
color string
Color.
thickness number
Thickness.
size number
Pattern size.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

hoverFill

Getter for current series hover fill color.

Returns:

anychart.graphics.vector.Fill - Current hover fill color.
Sets hover fill settings using an object or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
null
Color as an object or a string.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.
Sets hover fill settings using function.

Params:

Name Type Default Description
fillFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return hoverFillValue; // type anychart.graphics.vector.Fill }.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining. chaining.

Try it:

Hover fill color with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

Linear gradient hover fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

Radial gradient hover fill. Learn more about coloring.

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

Image hover fill. Learn more about coloring.

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

hoverHatchFill

Getter for current hover hatch fill settings.

Returns:

anychart.graphics.vector.PatternFill anychart.graphics.vector.HatchFill function - Current hover hatch fill.
Setter for hover hatch fill settings. Learn more about hatch fill settings.

Params:

Name Type Default Description
patternFillOrType anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill | function | anychart.graphics.vector.HatchFill.HatchFillType | string
null
PatternFill or HatchFill instance or type of hatch fill.
color string
Color.
thickness number
Thickness.
size number
Pattern size.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

hoverSize

Getter for hovered marker size

Returns:

number - Current hovered marker size.

Try it:

Setter for hovered marker size.

Params:

Name Type Default Description
value number
8
Value to set.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

hoverStroke

Getter for current hover stroke settings.

Returns:

anychart.graphics.vector.Stroke - Current stroke settings.
Setter for series hover stroke by function.
Note: For all ContiniousBase series (line/spline/area etc) hoverStroke works only with hoverSeries.

Params:

Name Type Default Description
fillFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by stroke() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke }.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

Setter for hover stroke settings. Learn more about stroke settings.
Note: For all ContiniousBase series (line/spline/area etc) hoverStroke works only with hoverSeries.

Params:

Name Type Default Description
strokeOrFill anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
null
Fill settings or stroke settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

hoverType

Getter for current hovered marker type settings.

Returns:

string anychart.enums.MarkerType function - Markers type settings.

Try it:

Setter for hovered marker type settings.

Params:

Name Type Default Description
value string | anychart.enums.MarkerType | function
undefined
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; }.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

selectType

Getter/setter for current selected marker type settings.

Params:

Name Type Description
value string | anychart.enums.MarkerType | function .

size

Getter for marker size

Returns:

number - Current marker size.

Try it:

Setter for marker size.

Params:

Name Type Default Description
value number
6
Value to set.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

stroke

Getter for current stroke settings.

Returns:

anychart.graphics.vector.Stroke - Current stroke settings.
Setter for series stroke by function.

Params:

Name Type Default Description
fillFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by stroke() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke }.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

Setter for stroke settings. Learn more about stroke settings.

Params:

Name Type Default Description
strokeOrFill anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Fill settings or stroke settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it:

type

Getter for current marker type settings.

Returns:

string anychart.enums.MarkerType function - Markers type settings.

Try it:

Setter for marker type settings.

Params:

Name Type Default Description
value string | anychart.enums.MarkerType | function
"circle"
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; }.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

unhover

Removes hover from the series point or series.

Returns:

anychart.core.polar.series.Marker - Self instance for method chaining.

Try it: