May 2019
Beginner to intermediate
650 pages
14h 50m
English
A grouping operation starts with a call to d3.nest() and is followed by operations to set the keys and the data that will be processed. These functions and methods are listed in the following table:
|
Function or method |
Description |
|
d3.nest() |
Creates a nest operator with an empty set of keys. |
|
nest.key(function) |
Registers a function that returns a key to be used in grouping. |
|
nest.sortKeys(comparator) |
Sorts keys using a provided comparator function. |
|
nest.sortValues(comparator) |
Sorts leaf elements using a provided comparator function. |
|
nest.rollup(function) |
Registers a rollup function that returns a collapsed value. The result will also replace the entry.values key with the entry.value key. ... |
Read now
Unlock full access