May 2019
Beginner to intermediate
650 pages
14h 50m
English
Discrete scales map a domain, which can have discrete or continuous input, to a discrete range. This includes scales that map segments based on samples, subsets divided equally or using threshold values, one-to-one mappings, and mappings to spaces and points.
The following table lists the generator functions that create discrete scales:
|
Generator function |
Domain (input) |
Range (output) |
Description |
|
d3.scaleQuantize |
Continuous Default: [0,1] |
Discrete Default: [0,1] |
Maps the values of a continous domain to a discrete range by dividing the domain into equal parts, according to the amount of items in the range. |
|
d3.scaleQuantile |
Discrete sample and continuous input Default: [] |
Discrete Default: [] |
Read now
Unlock full access