May 2019
Beginner to intermediate
650 pages
14h 50m
English
Unlike equivalent native JavaScript methods, most of the d3-array functions in the following table are optimized for data manipulation, since they ignore missing data (the exception is d3.quantile()). This means you don't have to preprocess the data to deal with undefined, null, and NaN values. These functions can be applied to arrays of numbers or arrays of objects. Arrays of objects require the use of an accessor function, which is used to select the object property to be used:
|
Function |
Description |
|
d3.min(array, accessor) |
Returns the smallest element of the array in natural order. |
|
d3.max(array, accessor) |
Returns the largest value of the array in natural order. |
|
d3.extent(array, accessor) |
Read now
Unlock full access