Class: legend

legend(selection)

new legend(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) height(_v) → {*}

Height Getter / Setter

Parameters:
Name Type Description
_v number

Height in px.

Source:
Returns:
Type
*

(static) itemType(_v) → {*}

Item Type Getter / Setter

Parameters:
Name Type Description
_v number

Rect or Line

Source:
Returns:
Type
*

(static) opacity(_v) → {*}

Opacity Getter / Setter

Parameters:
Name Type Description
_v number

Opacity 0 -1.

Source:
Returns:
Type
*

(static) sizeScale(_v) → {*}

Size Scale Getter / Setter

Parameters:
Name Type Description
_v d3.scale

D3 color scale.

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

Transition.

Source:
Returns:
Type
*

(static) width(_v) → {*}

Width Getter / Setter

Parameters:
Name Type Description
_v number

Width in px.

Source:
Returns:
Type
*