Class Config

General configuration

Hierarchy

  • Config

Constructors

  • Returns Config

Properties

dateFormat: ((date: Date) => string)

Type declaration

    • (date: Date): string
    • The default date format for dc.js, by default d3.timeFormat('%m/%d/%Y')

      Parameters

      • date: Date

      Returns string

disableTransitions: boolean

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

floatFormat: any = ...

The default floating point format for dc.js.

_schemeCategory20c: ColorsList = ...

Methods

  • 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.

    Example

    config.defaultColors(d3.schemeSet1)
    

    Returns ColorsList

  • Parameters

    Returns Config

Generated using TypeDoc