Published
Edited
Jun 13, 2021
Importers
Insert cell
Insert cell
Insert cell
nsppolls = d3.json('https://raw.githubusercontent.com/nsppolls/nsppolls/master/regionales.json')
Insert cell
## Régions
Insert cell
regions = nsppolls.map(i => i.region)
Insert cell
Inputs.table(sondages)
Insert cell
sondages = nsppolls
.map(r => r.sondages.map(s =>({
region: r.region,
...s
})))
.flat()
.sort((a,b) => b.fin_enquete.localeCompare(a.fin_enquete))
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