Class: Config

Config

General configuration


new Config()

Source:

Classes

Config

Members


dateFormat :function

The default date format for dc.js

Type:
  • function
Default Value:
  • d3.timeFormat('%m/%d/%Y')
Source:

disableTransitions :Boolean

If this boolean is set truthy, all transitions will be disabled, and changes to the charts will happen immediately.

Type:
  • Boolean
Default Value:
  • false
Source:

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 | config
Example
config.defaultColors(d3.schemeSet1)