Function scaleSequentialLog

  • A sequential scale with a logarithmic transform, analogous to a log scale.

    The first generic corresponds to the data type of the output of the interpolator underlying the scale. The second generic corresponds to the data type of the unknown value.

    Type Parameters

    • Output = number

    • Unknown = never

    Parameters

    • Optional interpolator: ((t) => Output)

      The interpolator function to be used with the scale.

        • (t): Output
        • Parameters

          • t: number

          Returns Output

    Returns ScaleSequential<Output, Unknown>

  • A sequential scale with a logarithmic transform, analogous to a log scale.

    The first generic corresponds to the data type of the output of the interpolator underlying the scale. The second generic corresponds to the data type of the unknown value.

    Type Parameters

    • Output

    • Unknown = never

    Parameters

    • domain: Iterable<NumberValue>

      A two-element array of numeric domain values.

    • interpolator: ((t) => Output)

      The interpolator function to be used with the scale.

        • (t): Output
        • Parameters

          • t: number

          Returns Output

    Returns ScaleSequential<Output, Unknown>