API Docs for: 3.18.1
Show:

Lines Class

Defined in: charts/js/Lines.js:7
Module: series-line-util
Parent Module: charts

Utility class used for drawing lines.

Constructor

Lines

()

Methods

_getGraphic

() private

Creates a graphic in which to draw a series.

Returns:

Graphic

_getLineDefaults

() protected

Default values for styles attribute.

Returns:

Object

_toggleVisible

(
  • visible
)
private

Toggles visibility

Parameters:

  • visible Boolean

    indicates visibilitye

drawDashedLine

(
  • xStart
  • yStart
  • xEnd
  • yEnd
  • dashSize
  • gapSize
)
private

Draws a dashed line between two points.

Parameters:

  • xStart Number

    The x position of the start of the line

  • yStart Number

    The y position of the start of the line

  • xEnd Number

    The x position of the end of the line

  • yEnd Number

    The y position of the end of the line

  • dashSize Number

    the size of dashes, in pixels

  • gapSize Number

    the size of gaps between dashes, in pixels

drawLines

() protected

Draws lines for the series.

drawSpline

() protected

Connects data points with a consistent curve for a series.

Properties

_lineDefaults

Object private