May 2019
Beginner to intermediate
650 pages
14h 50m
English
The d3.scalePoint() generator creates a scale function that fits a number of points that are equally spaced within an interval.
|
Method |
Description |
|
padding(value) |
Sets the space before the first point and after the last point. The default is zero. |
|
align(value) |
If there is padding, it moves the points inside the available margins. Points are centered by default (value = 0.5), leaving equal space before and after the chart. A value of zero will remove space before and double space after. A value of 1 does the opposite. |
|
step() |
Returns the distance between the starts of adjacent points. |
A point scale can be used to map a list of discrete input categories to positions ...
Read now
Unlock full access