Optional
range: Iterable<NumberValue>A two-element array of numeric values.
Constructs a new point scale with the specified domain and range, no padding, no rounding and center alignment. The domain defaults to the empty domain.
The generic corresponds to the data type of domain elements.
Array of domain values.
A two-element array of numeric values.
Constructs a new point scale with the specified range, no padding, no rounding and center alignment. The domain defaults to the empty domain. If range is not specified, it defaults to the unit range [0, 1].
The generic corresponds to the data type of domain elements.