Function UnitsOrdinal

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

    See

    Example

    chart.xUnits(UnitsOrdinal)
    .x(d3.scaleOrdinal())

    Parameters

    • start: any
    • end: any

    Returns number | any[]

Generated using TypeDoc