Function scaleRadial

  • Constructs a new radial scale with the specified range. The domain defaults to [0, 1].

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

    The range must be set in accordance with the range element type.

    Type Parameters

    • Range = number

    • Unknown = never

    Parameters

    • Optional range: Iterable<Range>

      Iterable of range values.

    Returns ScaleRadial<Range, Range, Unknown>

  • Constructs a new radial scale with the specified domain and range.

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

    The range must be set in accordance with the range element type.

    Type Parameters

    • Range

    • Unknown = never

    Parameters

    • domain: Iterable<NumberValue>

      Iterable of numeric domain values.

    • range: Iterable<Range>

      Iterable of range values.

    Returns ScaleRadial<Range, Range, Unknown>