Show:
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:

<p><p><p>Graphic</p></p></p>

_getLineDefaults

() protected

Default values for styles attribute.

Returns:

<p><p><p>Object</p></p></p>

_toggleVisible

(
  • visible
)
private

Toggles visibility

Parameters:

  • visible Boolean

    <p><p><p>indicates visibilitye</p></p></p>

drawDashedLine

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

Draws a dashed line between two points.

Parameters:

  • xStart Number

    <p><p><p>The x position of the start of the line</p></p></p>

  • yStart Number

    <p><p><p>The y position of the start of the line</p></p></p>

  • xEnd Number

    <p><p><p>The x position of the end of the line</p></p></p>

  • yEnd Number

    <p><p><p>The y position of the end of the line</p></p></p>

  • dashSize Number

    <p><p><p>the size of dashes, in pixels</p></p></p>

  • gapSize Number

    <p><p><p>the size of gaps between dashes, in pixels</p></p></p>

drawLines

() protected

Draws lines for the series.

drawSpline

() protected

Connects data points with a consistent curve for a series.

Properties

_lineDefaults

Object private