Class: ChartRegistry

ChartRegistry

The ChartRegistry maintains sets of all instantiated dc.js charts under named groups and the default group. There is a single global ChartRegistry object named chartRegistry

A chart group often corresponds to a crossfilter instance. It specifies the set of charts which should be updated when a filter changes on one of the charts or when the global functions filterAll, refocusAll, renderAll, redrawAll, or chart functions baseMixin.renderGroup, baseMixin.redrawGroup are called.


new ChartRegistry()

Source:

Methods


clear(group)

Clear given group if one is provided, otherwise clears all groups.

Parameters:
Name Type Description
group String

Group name

Source:
Returns:
Type
undefined

deregister(chart [, group])

Remove given chart instance from the given group, creating the group if necessary. If no group is provided, the default group constants.DEFAULT_CHART_GROUP will be used.

Parameters:
Name Type Argument Description
chart Object

dc.js chart instance

group String <optional>

Group name

Source:
Returns:
Type
undefined

has(chart)

Determine if a given chart instance resides in any group in the registry.

Parameters:
Name Type Description
chart Object

dc.js chart instance

Source:
Returns:
Type
Boolean

list( [group])

Get an array of each chart instance in the given group. If no group is provided, the charts in the default group are returned.

Parameters:
Name Type Argument Description
group String <optional>

Group name

Source:
Returns:
Type
Array.<Object>

register(chart [, group])

Add given chart instance to the given group, creating the group if necessary. If no group is provided, the default group constants.DEFAULT_CHART_GROUP will be used.

Parameters:
Name Type Argument Description
chart Object

dc.js chart instance

group String <optional>

Group name

Source:
Returns:
Type
undefined