Published
Edited
Nov 3, 2020
Insert cell
Insert cell
o_map = (o, f) =>
Object.assign({}, ...Object.keys(o).map(k => ({ [k]: f(o[k]) })))
Insert cell
Insert cell
Insert cell
beers = pivot_shorter(fetched_beers, "abv", "ibu", "ph")
Insert cell
Insert cell
o_map(beers, d3.extent)
Insert cell
Insert cell
o_map(beers, beer_prop => [d3.min(beer_prop), d3.max(beer_prop)])
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