Class: AppSeriesColorManipulator

AppSeriesDirective~ AppSeriesColorManipulator


new AppSeriesColorManipulator(headElement, property)

Manipulates a color (fill, stroke...) of a SVG DOM node based on the
series value it receives. The value will be drawn from the d.color value.
The property must be inside of the DOM's "style...." namespace

Parameters:
Name Type Description
headElement

the DOM element the manipulator has to control

property

the property of the DOM element that this manipulator
controls; must be an attribute of the DOM element

Source:

Extends

Methods


retrieveDefaults()

Retrieve the default element's color.

Source:

setFromSeriesValue(seriesValue, highlight)

Sets the color of the manipulated DOM element based on the color value of
the series value

Parameters:
Name Type Description
seriesValue

the seriesValue, if undefined, resets value to
unmanipulated default value

highlight

whether the series associated with the series value is
currently highlighted

Source: