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

scaleBand

Constructs a new band 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 scaleBand<Domain extends {
toString(): string;
}
= string
>
(range?: Iterable<NumberValue>): ScaleBand<Domain>;
function scaleBand<Domain extends {
toString(): string;
}
>
(domain: Iterable<Domain>, range: Iterable<NumberValue>): ScaleBand<Domain>;
§
scaleBand<Domain extends {
toString(): string;
}
= string
>
(range?: Iterable<NumberValue>): ScaleBand<Domain>
[src]

Constructs a new band 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

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

Constructs a new band scale with the specified domain and range, no padding, no rounding and center alignment.

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