Unrolling a d3.rollup | Ben Ayre | Observable
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
•ojs
Comments (2)
Fil
Jun 18, 2021
with d3-array@^3 you could use d3.flatRollup to obtain something similar d3.flatRollup(athletes, v => d3.mean(v, d => d.earnings), d => d.sport)
Ben Ayre
Jun 18, 2021
thanks
@fil
. So great to see that added! I've put a note at the top to redirect any traffic
Reply
Add comment
Subscribe to notifications
Observable
Sign in
Ben Ayre
9
Reply
Add comment
Subscribe to notifications
0
Unrolling a d3.rollup | Ben Ayre | Observable