Public
Edited
Apr 10
Fork of Untitled
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
openzhJSON = {
const jsonURL = "https://www.web.statistik.zh.ch/ogd/daten/zhweb.json";

return d3.json(jsonURL);
}
Insert cell
Insert cell
// Reducing the JSON to the array of values
jsonData = Object.values(openzhJSON)[0]
Insert cell
Insert cell
gpzhOnly = jsonData.filter(
(d) =>
d.landingPage ==
"https://www.zh.ch/de/politik-staat/gemeinden/gemeindeportraet.html"
)
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
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

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