May 2019
Beginner to intermediate
650 pages
14h 50m
English
To demonstrate nesting with multiple keys, we will use a complete step-by-step example using d3.nest(). The code is available in the StepByStepNest/ folder.
Consider the following CSV file (Data/rain_sao_paulo.csv), which contains the average amount of rain in millimeters measured monthly in the city of São Paulo, Brazil, from 1984 to 2017:
Month,Year,Rain_mm01,1984,259.302,1984,32.503,1984,5404,1984,96.805,1984,113... +400 lines0,2017,149.411,2017,159.812,2017,151.3
The data can be loaded using d3.csv(), which makes it available as a JavaScript object when it has finished loading. This process is illustrated as follows:
Now, you need to display that data in an ...
Read now
Unlock full access