dc.js Namespace: units (original) (raw)
dc. units
Namespaces
Methods
integers(start, end)
The default value for .xUnits for theCoordinate 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
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 passingd3.scaleOrdinalto .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())