Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Scale

Type parameters

  • Range

  • Output

Hierarchy

  • Scale

Callable

  • __call(x: Date): Output

Index

Methods

clamp

  • clamp(): boolean
  • clamp(clamp: boolean): Scale<Range, Output>

copy

  • copy(): Scale<Range, Output>

domain

  • domain(): Date[]
  • domain(dates: number[]): Scale<Range, Output>
  • domain(dates: Date[]): Scale<Range, Output>

interpolate

  • interpolate(): function
  • interpolate(factory: function): Scale<Range, Output>
  • Returns function

      • (a: Range, b: Range): function
      • Parameters

        • a: Range
        • b: Range

        Returns function

          • (t: number): Output
          • Parameters

            • t: number

            Returns Output

  • Parameters

    • factory: function
        • (a: Range, b: Range): function
        • Parameters

          • a: Range
          • b: Range

          Returns function

            • (t: number): Output
            • Parameters

              • t: number

              Returns Output

    Returns Scale<Range, Output>

invert

  • invert(y: number): Date

nice

  • nice(): Scale<Range, Output>
  • nice(interval: Interval, step?: number): Scale<Range, Output>

range

  • range(): Range[]
  • range(values: Range[]): Scale<Range, Output>

rangeRound

  • rangeRound(values: number[]): Scale<number, number>

tickFormat

  • tickFormat(count: number): function
  • Parameters

    • count: number

    Returns function

      • (d: Date): string
      • Parameters

        • d: Date

        Returns string

ticks

  • ticks(): Date[]
  • ticks(interval: Interval, step?: number): Date[]
  • ticks(count: number): Date[]

Generated using TypeDoc