dc.js Class: config (original) (raw)
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 ofd3.schemeCategory20c
for backward compatibility. This color scheme has beenremoved from D3v5. In DC 3.1 release it will change to a more appropriate default.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
colors | Array |
Source:
Returns:
Type
Array|dc.config
Example
dc.config.defaultColors(d3.schemeSet1)