Unrolling a d3.rollup | Ben Ayre | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
Ben Ayre
@bayre
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
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
Ben Ayre
9
Reply
Add comment
Subscribe to notifications
0
Unrolling a d3.rollup | Ben Ayre | Observable