Function scaleDivergingPow

  • A diverging scale with a exponential transform, analogous to a power scale.

    The first generic corresponds to the data type of the interpolator return type. The second generic corresponds to the data type of the unknown value.

    Type Parameters

    • Output = number

    • Unknown = never

    Parameters

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

      The scale’s interpolator.

        • (t): Output
        • Parameters

          • t: number

          Returns Output

    Returns ScaleDiverging<Output, Unknown>

  • A diverging scale with a exponential transform, analogous to a power scale.

    The first generic corresponds to the data type of the interpolator return type. The second generic corresponds to the data type of the unknown value.

    Type Parameters

    • Output

    • Unknown = never

    Parameters

    • domain: Iterable<NumberValue>

      Array of three numeric domain values.

    • interpolator: ((t) => Output)

      The scale’s interpolator.

        • (t): Output
        • Parameters

          • t: number

          Returns Output

    Returns ScaleDiverging<Output, Unknown>