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
| Parameter | Type |
|---|---|
domain | Range |
Returns
LogScale
Properties
domain
ts
domain: Range;Defined in: scales/scale.ts:47
Implementation of
log
ts
readonly log: true = true;Defined in: scales/scale.ts:46
Implementation of
type
ts
readonly type: "log" = "log";Defined in: scales/scale.ts:45
Implementation of
Methods
formatTick()
ts
formatTick(value): string;Defined in: scales/scale.ts:82
Default label formatter for a tick value.
Parameters
| Parameter | Type |
|---|---|
value | number |
Returns
string
Implementation of
invert()
ts
invert(t): number;Defined in: scales/scale.ts:67
Parameters
| Parameter | Type |
|---|---|
t | number |
Returns
number
Implementation of
norm()
ts
norm(value): number;Defined in: scales/scale.ts:63
Parameters
| Parameter | Type |
|---|---|
value | number |
Returns
number
Implementation of
ticks()
ts
ticks(): Tick[];Defined in: scales/scale.ts:70
Auto ticks appropriate for this scale type.
Returns
Tick[]