Function scaleQuantile

  • Constructs a new quantile scale with the specified range. The domain defaults to the empty array. If range is not specified, it defaults to the empty array. The quantile scale is invalid until both a domain and range are specified.

    The first generic corresponds to the data type of range elements. The second generic corresponds to the data type of the unknown value.

    Type Parameters

    • Range = number

    • Unknown = never

    Parameters

    • Optional range: Iterable<Range>

      Array of range values.

    Returns ScaleQuantile<Range, Unknown>

  • Constructs a new quantile scale with the specified domain and range. The quantile scale is invalid until both a domain and range are specified.

    The first generic corresponds to the data type of range elements. The second generic corresponds to the data type of the unknown value.

    Type Parameters

    • Range

    • Unknown = never

    Parameters

    • domain: Iterable<NumberValue>

      Array of domain values.

    • range: Iterable<Range>

      Array of range values.

    Returns ScaleQuantile<Range, Unknown>