Mixin: SeriesMixin

SeriesMixin

Methods


curve( [curve])

sets a curve type. If is not specified, returns the current curve setting.
Parameters:
Name Type Argument Default Description
curve string <optional>
linear (linear|stepped|curved)
Source:
Returns:
Type
curve | SeriesMixin
Example
series.curve('curved') //renders Catmull-Rom spline curve
series.curve();

point( [point])

If is true, renders a point mark on each data point. If is not specified, returns the current point setting.
Parameters:
Name Type Argument Default Description
point boolean <optional>
false
Source:
Returns:
Type
point | SeriesMixin
Example
series.point(true)

pointRatio( [pointRatio])

sets point radius relative to the line width. If is not specified, returns the current pointRatio setting.
Parameters:
Name Type Argument Default Description
pointRatio number <optional>
3
Source:
Returns:
Type
pointRatio | SeriesMixin
Example
series.pointRatio(5) // the point radius will be 5 times as large as the line width.