Public
Edited
Apr 9, 2024
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
africa = FileAttachment("africa.geojson").json()
Insert cell
tmp = viz.tool.merge({
geom: africa,
geom_id: "ISO3",
data: data.filter((d) => d.year == 2020),
data_id: "id"
}).featureCollection
Insert cell
tmp.features.map((d) => d.properties)
Insert cell
viz = require("geoviz")
Insert cell
tmp1 = FileAttachment("tmp.geojson").json()
Insert cell
d = tmp1.features.map((d) => d.properties)
Insert cell
ids = africa.features.map((d) => d.properties.ISO3)
Insert cell
d
.filter((d) => ids.includes(d.adm0_a3_is))
.map((d) => ({ id: d.adm0_a3_is, subregion: d.Label2 }))
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