Class: lineChart

lineChart(selection)

new lineChart(selection)

Constructor

Parameters:
Name Type Description
selection d3.selection

The chart holder D3 selection.

Source:

Methods

(static) colorScale(_v) → {*}

Color Scale Getter / Setter

Parameters:
Name Type Description
_v d3.scale

D3 color scale.

Source:
Returns:
Type
*

(static) colors(_v) → {*}

Colors Getter / Setter

Parameters:
Name Type Description
_v Array

Array of colours used by color scale.

Source:
Returns:
Type
*

(static) dispatch(_v) → {*}

Dispatch Getter / Setter

Parameters:
Name Type Description
_v d3.dispatch

Dispatch event handler.

Source:
Returns:
Type
*

(static) dispatch(_v) → {*}

Dispatch Getter / Setter

Parameters:
Name Type Description
_v d3.dispatch

Dispatch event handler.

Source:
Returns:
Type
*

(static) height(_v) → {*}

Height Getter / Setter

Parameters:
Name Type Description
_v number

Height in px.

Source:
Returns:
Type
*

(static) margin(_v) → {*}

Margin Getter / Setter

Parameters:
Name Type Description
_v number

Margin in px.

Source:
Returns:
Type
*

(static) on() → {*}

On Event Getter

Source:
Returns:
Type
*

(static) on() → {*}

On Event Getter

Source:
Returns:
Type
*

(static) opacity(_v) → {*}

Opacity Getter / Setter

Parameters:
Name Type Description
_v Number

Opacity level.

Source:
Returns:
Type
*

(static) opacity(_v) → {*}

Opacity Getter / Setter

Parameters:
Name Type Description
_v number

Opacity 0 -1.

Source:
Returns:
Type
*

(static) showAxis(_v) → {*}

Show Axis Getter / Setter

Parameters:
Name Type Description
_v Boolean

Show axis true / false.

Source:
Returns:
Type
*

(static) showLegend(_v) → {*}

Show Legend Getter / Setter

Parameters:
Name Type Description
_v Boolean

Show legend true / false.

Source:
Returns:
Type
*

(static) subTitle(_v) → {*}

SubTitle Getter / Setter

Parameters:
Name Type Description
_v string

SubTitle text.

Source:
Returns:
Type
*

(static) title(_v) → {*}

Title Getter / Setter

Parameters:
Name Type Description
_v string

Title text.

Source:
Returns:
Type
*

(static) transition(_v) → {*}

Transition Getter / Setter

Parameters:
Name Type Description
_v d3.transition

D3 transition style.

Source:
Returns:
Type
*

(static) transition(_v) → {*}

Transition Getter / Setter XX

Parameters:
Name Type Description
_v d3.transition

Transition.

Source:
Returns:
Type
*

(static) width(_v) → {*}

Width Getter / Setter

Parameters:
Name Type Description
_v number

Width in px.

Source:
Returns:
Type
*

(static) xScale(_v) → {*}

X Scale Getter / Setter

Parameters:
Name Type Description
_v d3.scale

D3 scale.

Source:
Returns:
Type
*

(static) yAxisLabel(_v) → {*}

Y-Axis Label Getter / Setter

Parameters:
Name Type Description
_v number

Label text.

Source:
Returns:
Type
*

(static) yScale(_v) → {*}

Y Scale Getter / Setter

Parameters:
Name Type Description
_v d3.scale

D3 scale.

Source:
Returns:
Type
*

lineChart(selection)

new lineChart(selection)

Constructor

Parameters:
Name Type Description
selection d3.selection

The chart holder D3 selection.

Source:

Methods

(static) colorScale(_v) → {*}

Color Scale Getter / Setter

Parameters:
Name Type Description
_v d3.scale

D3 color scale.

Source:
Returns:
Type
*

(static) colors(_v) → {*}

Colors Getter / Setter

Parameters:
Name Type Description
_v Array

Array of colours used by color scale.

Source:
Returns:
Type
*

(static) dispatch(_v) → {*}

Dispatch Getter / Setter

Parameters:
Name Type Description
_v d3.dispatch

Dispatch event handler.

Source:
Returns:
Type
*

(static) dispatch(_v) → {*}

Dispatch Getter / Setter

Parameters:
Name Type Description
_v d3.dispatch

Dispatch event handler.

Source:
Returns:
Type
*

(static) height(_v) → {*}

Height Getter / Setter

Parameters:
Name Type Description
_v number

Height in px.

Source:
Returns:
Type
*

(static) margin(_v) → {*}

Margin Getter / Setter

Parameters:
Name Type Description
_v number

Margin in px.

Source:
Returns:
Type
*

(static) on() → {*}

On Event Getter

Source:
Returns:
Type
*

(static) on() → {*}

On Event Getter

Source:
Returns:
Type
*

(static) opacity(_v) → {*}

Opacity Getter / Setter

Parameters:
Name Type Description
_v Number

Opacity level.

Source:
Returns:
Type
*

(static) opacity(_v) → {*}

Opacity Getter / Setter

Parameters:
Name Type Description
_v number

Opacity 0 -1.

Source:
Returns:
Type
*

(static) showAxis(_v) → {*}

Show Axis Getter / Setter

Parameters:
Name Type Description
_v Boolean

Show axis true / false.

Source:
Returns:
Type
*

(static) showLegend(_v) → {*}

Show Legend Getter / Setter

Parameters:
Name Type Description
_v Boolean

Show legend true / false.

Source:
Returns:
Type
*

(static) subTitle(_v) → {*}

SubTitle Getter / Setter

Parameters:
Name Type Description
_v string

SubTitle text.

Source:
Returns:
Type
*

(static) title(_v) → {*}

Title Getter / Setter

Parameters:
Name Type Description
_v string

Title text.

Source:
Returns:
Type
*

(static) transition(_v) → {*}

Transition Getter / Setter

Parameters:
Name Type Description
_v d3.transition

D3 transition style.

Source:
Returns:
Type
*

(static) transition(_v) → {*}

Transition Getter / Setter XX

Parameters:
Name Type Description
_v d3.transition

Transition.

Source:
Returns:
Type
*

(static) width(_v) → {*}

Width Getter / Setter

Parameters:
Name Type Description
_v number

Width in px.

Source:
Returns:
Type
*

(static) xScale(_v) → {*}

X Scale Getter / Setter

Parameters:
Name Type Description
_v d3.scale

D3 scale.

Source:
Returns:
Type
*

(static) yAxisLabel(_v) → {*}

Y-Axis Label Getter / Setter

Parameters:
Name Type Description
_v number

Label text.

Source:
Returns:
Type
*

(static) yScale(_v) → {*}

Y Scale Getter / Setter

Parameters:
Name Type Description
_v d3.scale

D3 scale.

Source:
Returns:
Type
*