Class: config

dc. config


new config()

General configuration

Source:
Returns:
Type
dc.config

Methods


defaultColors( [colors])

Set the default color scheme for ordinal charts. Changing it will impact all ordinal charts.

By default it is set to a copy of d3.schemeCategory20c for backward compatibility. This color scheme has been removed from D3v5. In DC 3.1 release it will change to a more appropriate default.

Parameters:
Name Type Argument Description
colors Array <optional>
Source:
Returns:
Type
Array | dc.config
Example
dc.config.defaultColors(d3.schemeSet1)