May 2019
Beginner to intermediate
650 pages
14h 50m
English
The following table lists and describes the scale generator functions that are available in d3-scale (version 3), which map a continuous input domain to a continuous output range. Output ranges are [0,1] by default:
|
Generator function |
Domain (input) |
Description |
|
d3.scaleLinear |
Continuous Default: [0,1] |
Maps a continuous domain to a continuous range using a linear function, f = ax + b. |
|
d3.scalePow |
Continuous Default: [0,1] |
Maps a continuous domain to a continuous range using a power function, f = axk + b, where k can be set with the exponent(k) method. The default is k =1 (linear scale). |
|
d3.scaleSqrt |
Continuous Default: [0,1] |
The same as d3.scalePow() with exponent(0.5). |
|
d3.scaleLog |
Read now
Unlock full access