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>
Returns:
- Type
- Array | dc.config
Example
dc.config.defaultColors(d3.schemeSet1)