Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Ordinal

Type parameters

  • Domain: object

  • Range

Hierarchy

  • Ordinal

Callable

  • __call(x: Domain): Range

Index

Methods

copy

domain

  • domain(): Domain[]
  • domain(values: Domain[]): Ordinal<Domain, Range>

range

  • range(): Range[]
  • range(values: Range[]): Ordinal<Domain, Range>

rangeBand

  • rangeBand(): number

rangeBands

  • rangeBands(interval: [number, number], padding?: number, outerPadding?: number): Ordinal<Domain, number>
  • Parameters

    • interval: [number, number]
    • Optional padding: number
    • Optional outerPadding: number

    Returns Ordinal<Domain, number>

rangeExtent

  • rangeExtent(): [number, number]

rangePoints

  • rangePoints(interval: [number, number], padding?: number): Ordinal<Domain, number>

rangeRoundBands

  • rangeRoundBands(interval: [number, number], padding?: number, outerPadding?: number): Ordinal<Domain, number>
  • Parameters

    • interval: [number, number]
    • Optional padding: number
    • Optional outerPadding: number

    Returns Ordinal<Domain, number>

rangeRoundPoints

  • rangeRoundPoints(interval: [number, number], padding?: number): Ordinal<Domain, number>

Generated using TypeDoc