#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# Lines Class

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

Utility class used for drawing lines.

## Constructor

### `Lines`

()

Defined in `charts/js/Lines.js:7`

- Index
- Methods
- Properties

## Item Index

### Methods

- _getGraphic
- _getLineDefaults
- _toggleVisible
- drawDashedLine
- drawLines
- drawSpline

### Properties

- _lineDefaults

## Methods

### `_getGraphic`

() private

Defined in `charts/js/Lines.js:25`

Creates a graphic in which to draw a series.

#### Returns:

Graphic

### `_getLineDefaults`

() protected

Defined in `charts/js/Lines.js:259`

Default values for `styles` attribute.

#### Returns:

Object

### `_toggleVisible`

(

- `visible`

)
private

Defined in `charts/js/Lines.js:43`

Toggles visibility

#### Parameters:

- `visible` Boolean

  indicates visibilitye

### `drawDashedLine`

(

- `xStart`
- `yStart`
- `xEnd`
- `yEnd`
- `dashSize`
- `gapSize`

)
private

Defined in `charts/js/Lines.js:208`

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

Defined in `charts/js/Lines.js:58`

Draws lines for the series.

### `drawSpline`

() protected

Defined in `charts/js/Lines.js:162`

Connects data points with a consistent curve for a series.

## Properties

### `_lineDefaults`

Object private

Defined in `charts/js/Lines.js:18`