Class: legendCategorical

legendCategorical(selection)

new legendCategorical(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 string

Item type (‘rect’, ‘circle’).

Source:
Returns:
Type
*

(static) opacity(_v) → {*}

Opacity Getter / Setter

Parameters:
Name Type Description
_v number

Opacity 0 -1.

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
*