Published
Edited
Jan 21, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
qdata = fetch(`https://query.wikidata.org/sparql?query=${encodeURIComponent(query)}`, {headers: {accept: "application/sparql-results+json"}}).then(response => response.json())
Insert cell
df = qdata.results.bindings.map(d => ({
countryLabel: d.countryLabel.value,
code_iso: d.code_iso.value,
pop: d.pop.value
}))

Insert cell
Insert cell
maddison
Insert cell
Insert cell
data2 = bertin.merge(countries, "ISO3_CODE", df, "code_iso")
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