Interface AxisScale<Domain>

A helper interface to which a scale passed into axis must conform (at a minimum) for axis to use the scale without error.

interface AxisScale {
    bandwidth?(): number;
    copy(): AxisScale<Domain>;
    domain(): Domain[];
    range(): number[];
    (x): number;
}

Type Parameters

  • Domain

  • Parameters

    • x: Domain

    Returns number

Methods

  • Returns number

  • Returns Domain[]

  • Returns number[]