Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

scaleSqrt

Constructs a new continuous power scale with the specified range, the exponent 0.5, the default interpolator and clamping disabled. The domain defaults to [0, 1]. If range is not specified, it defaults to [0, 1]. This is a convenience method equivalent to d3.scalePow().exponent(0.5).

The first generic corresponds to the data type of the range elements. The second generic corresponds to the data type of the output elements generated by the scale. The third generic corresponds to the data type of the unknown value.

If range element and output element type differ, the interpolator factory used with the scale must match this behavior and convert the interpolated range element to a corresponding output element.

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

The interpolator factory may be set using the interpolate(...) method of the scale.

function scaleSqrt<Range = number, Output = Range, Unknown = never>(range?: Iterable<Range>): ScalePower<Range, Output, Unknown>;
function scaleSqrt<Range, Output = Range, Unknown = never>(domain: Iterable<NumberValue>, range: Iterable<Range>): ScalePower<Range, Output, Unknown>;
§
scaleSqrt<Range = number, Output = Range, Unknown = never>(range?: Iterable<Range>): ScalePower<Range, Output, Unknown>
[src]

Constructs a new continuous power scale with the specified range, the exponent 0.5, the default interpolator and clamping disabled. The domain defaults to [0, 1]. If range is not specified, it defaults to [0, 1]. This is a convenience method equivalent to d3.scalePow().exponent(0.5).

The first generic corresponds to the data type of the range elements. The second generic corresponds to the data type of the output elements generated by the scale. The third generic corresponds to the data type of the unknown value.

If range element and output element type differ, the interpolator factory used with the scale must match this behavior and convert the interpolated range element to a corresponding output element.

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

The interpolator factory may be set using the interpolate(...) method of the scale.

§Type Parameters

§
Range = number
[src]
§
Output = Range
[src]
§
Unknown = never
[src]

§Parameters

§
range?: Iterable<Range> optional
[src]

Array of range values.

§Return Type

§
ScalePower<Range, Output, Unknown>
[src]
§
scaleSqrt<Range, Output = Range, Unknown = never>(domain: Iterable<NumberValue>, range: Iterable<Range>): ScalePower<Range, Output, Unknown>
[src]

Constructs a new continuous power scale with the specified domain and range, the exponent 0.5, the default interpolator and clamping disabled. This is a convenience method equivalent to d3.scalePow().exponent(0.5).

The first generic corresponds to the data type of the range elements. The second generic corresponds to the data type of the output elements generated by the scale. The third generic corresponds to the data type of the unknown value.

If range element and output element type differ, the interpolator factory used with the scale must match this behavior and convert the interpolated range element to a corresponding output element.

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

The interpolator factory may be set using the interpolate(...) method of the scale.

§Type Parameters

§
Range
[src]
§
Output = Range
[src]
§
Unknown = never
[src]

§Parameters

§
domain: Iterable<NumberValue>
[src]

Array of numeric domain values.

§
range: Iterable<Range>
[src]

Array of range values.

§Return Type

§
ScalePower<Range, Output, Unknown>
[src]