Published
Edited
Mar 17, 2020
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
countStats = d3.nest()
.key(f("API"))
.rollup(function(list) {
return list.reduce(function(a, d) {return a + d["CountAdjusted"]} , 0)
})
.entries(data).sort(function(a, b){ return d3.descending(a.value, b.value); })

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more