Namespace: units

dc. units

Source:

Namespaces

fp

Methods


<static> integers(start, end)

The default value for .xUnits for the Coordinate Grid Chart and should be used when the x values are a sequence of integers. It is a function that counts the number of integers in the range supplied in its start and end parameters.

Parameters:
Name Type Description
start Number
end Number
Source:
See:
Returns:
Type
Number
Example
chart.xUnits(dc.units.integers) // already the default

<static> ordinal()

This argument can be passed to the .xUnits function of a coordinate grid chart to specify ordinal units for the x axis. Usually this parameter is used in combination with passing d3.scaleOrdinal to .x.

As of dc.js 3.0, this is purely a placeholder or magic value which causes the chart to go into ordinal mode; the function is not called.

Source:
See:
Returns:
Type
uncallable
Example
chart.xUnits(dc.units.ordinal)
     .x(d3.scaleOrdinal())