Skip to content

Class: LogScale ​

Defined in: scales/scale.ts:44

A scale maps data-space values to normalized [0,1] and back, and knows how to generate its own "nice" ticks + default label format. log tells layers to apply a log10 transform on the GPU.

Implements ​

Constructors ​

Constructor ​

ts
new LogScale(domain?): LogScale;

Defined in: scales/scale.ts:48

Parameters ​

ParameterType
domainRange

Returns ​

LogScale

Properties ​

domain ​

ts
domain: Range;

Defined in: scales/scale.ts:47

Implementation of ​

Scale.domain


log ​

ts
readonly log: true = true;

Defined in: scales/scale.ts:46

Implementation of ​

Scale.log


type ​

ts
readonly type: "log" = "log";

Defined in: scales/scale.ts:45

Implementation of ​

Scale.type

Methods ​

formatTick() ​

ts
formatTick(value): string;

Defined in: scales/scale.ts:82

Default label formatter for a tick value.

Parameters ​

ParameterType
valuenumber

Returns ​

string

Implementation of ​

Scale.formatTick


invert() ​

ts
invert(t): number;

Defined in: scales/scale.ts:67

Parameters ​

ParameterType
tnumber

Returns ​

number

Implementation of ​

Scale.invert


norm() ​

ts
norm(value): number;

Defined in: scales/scale.ts:63

Parameters ​

ParameterType
valuenumber

Returns ​

number

Implementation of ​

Scale.norm


ticks() ​

ts
ticks(): Tick[];

Defined in: scales/scale.ts:70

Auto ticks appropriate for this scale type.

Returns ​

Tick[]

Implementation of ​

Scale.ticks

MIT licensed. WebGL2 required.