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.4.0 version to see the up to date information.

class anychart.core.scatter.series.Line Improve this Doc

Extends: anychart.core.scatter.series.BaseWithMarkers

Define Line series type. Get instance by methods anychart.charts.Scatter#line.

Methods Overview

Miscellaneous
connectMissingPoints()Getter for connect missing points setting.
hoverStroke()Getter for current hover stroke settings.
stroke()Getter for current stroke settings.
unhover()Removes hover from the series point or series.

Methods Description

connectMissingPoints

Getter for connect missing points setting.

Returns:

boolean - Current setting.
Setter for connect missing points setting.

Params:

NameTypeDefaultDescription
valueboolean
false
If set to true, the series will not be interrupted on missing points.
Defaults to false. Markers will not be drawn for missing points in both cases.

Returns:

anychart.core.scatter.series.Line - Self instance for method chaining.

hoverStroke

Getter for current hover stroke settings.

Returns:

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

Params:

NameTypeDefaultDescription
StrokeFunctionfunction
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.scatter.series.Line - Self instance for method chaining.
Setter for stroke settings. Learn more about stroke settings.

Params:

NameTypeDefaultDescription
strokeOrFillanychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Fill settings or stroke settings.
thicknessnumber
1
Line thickness.
dashpatternstring
Controls the pattern of dashes and gaps used to stroke paths.
lineJoinanychart.graphics.vector.StrokeLineJoin
Line join style.
lineCapanychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.scatter.series.Line - Self instance for method chaining.

stroke

Getter for current stroke settings.

Returns:

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

Params:

NameTypeDefaultDescription
strokeFunctionfunction
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.scatter.series.Line - Self instance for method chaining.
Setter for stroke settings. Learn more about stroke settings.

Params:

NameTypeDefaultDescription
strokeOrFillanychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Fill settings or stroke settings.
thicknessnumber
1
Line thickness.
dashpatternstring
Controls the pattern of dashes and gaps used to stroke paths.
lineJoinanychart.graphics.vector.StrokeLineJoin
Line join style.
lineCapanychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.scatter.series.Line - Self instance for method chaining.

unhover

Removes hover from the series point or series.

Returns:

anychart.core.scatter.series.Line - Self instance for method chaining.