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

scalePoint

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.

function scalePoint<Domain extends {
toString(): string;
}
= string
>
(range?: Iterable<NumberValue>): ScalePoint<Domain>;
function scalePoint<Domain extends {
toString(): string;
}
>
(domain: Iterable<Domain>, range: Iterable<NumberValue>): ScalePoint<Domain>;
§
scalePoint<Domain extends {
toString(): string;
}
= string
>
(range?: Iterable<NumberValue>): ScalePoint<Domain>
[src]

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.

§Type Parameters

§
Domain extends {
toString(): string;
}
= string
[src]

§Parameters

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

A two-element array of numeric values.

§Return Type

§
scalePoint<Domain extends {
toString(): string;
}
>
(domain: Iterable<Domain>, range: Iterable<NumberValue>): ScalePoint<Domain>
[src]

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.

§Type Parameters

§
Domain extends {
toString(): string;
}
[src]

§Parameters

§
domain: Iterable<Domain>
[src]

Array of domain values.

§
range: Iterable<NumberValue>
[src]

A two-element array of numeric values.

§Return Type