Published
Edited
May 18, 2021
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
locations.get(+location)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
nesteddata = d3.nest()
.key(d => yyyymmdd(d.date)).sortKeys(d3.ascending)
.entries(data)
Insert cell
Insert cell
Array.from(locations.values()).filter(l => l.id == location)
Insert cell
parameters_all = (await d3.json('https://api.openaq.org/v2/parameters'))
.results
Insert cell
parameters = Array.from(locations.values()).filter(l => l.id == location)[0].parameters
Insert cell
Insert cell
Insert cell
Insert cell
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