Module: accessors

D3-style getter / setter methods.

For each key of state, calling my[key]() returns the current value. Calling my[key](value) writes that value and returns my.

Parameters:
Name Type Description
my function

Component or chart function.

state Object

Per-instance values. Keys become method names.

Source:
Returns:

The same component or chart function.

Type
function