The dc.chartRegistry object maintains sets of all instantiated dc.js charts under named groups and the default group.
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 dc.filterAll, dc.refocusAll, dc.renderAll, dc.redrawAll, or chart functions baseMixin.renderGroup, baseMixin.redrawGroup are called.
Methods
-
<static> clear(group)
-
Clear given group if one is provided, otherwise clears all groups.
Parameters:
Name Type Description group
String Group name
Returns:
- Type
- undefined
-
<static> deregister(chart [, group])
-
Remove given chart instance from the given group, creating the group if necessary. If no group is provided, the default group
dc.constants.DEFAULT_CHART_GROUP
will be used.Parameters:
Name Type Argument Description chart
Object dc.js chart instance
group
String <optional>
Group name
Returns:
- Type
- undefined
-
<static> 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
Returns:
- Type
- Boolean
-
<static> 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
Returns:
- Type
- Array.<Object>
-
<static> register(chart [, group])
-
Add given chart instance to the given group, creating the group if necessary. If no group is provided, the default group
dc.constants.DEFAULT_CHART_GROUP
will be used.Parameters:
Name Type Argument Description chart
Object dc.js chart instance
group
String <optional>
Group name
Returns:
- Type
- undefined