Function scaleSequentialSymlog

  • A sequential scale with a symmetric logarithmic transform, analogous to a symlog 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 symmetric logarithmic transform, analogous to a symlog 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>