Public
Edited
Aug 16, 2023
Insert cell
Insert cell
df74a7b7-0b70-478b-93ae-d8ec4e0ecb97.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
dataJson = FileAttachment("df74a7b7-0b70-478b-93ae-d8ec4e0ecb97.csv").csv()
Insert cell
({ type: "FeatureCollection", features: features })
Insert cell
function getValue(n, startPoint) {
return n.split(startPoint)[1]?.split(", ")[0];
}
Insert cell
function getCategory(c) {
return c.split("{main=")[1].split(", ")[0];
}
Insert cell
function clean(i) {
return i.replace("[", "").replace("]", "");
}
Insert cell
function getNumber(n, startPoint) {
return n.split(startPoint)[1]?.split(", ")[1]?.replace("}]", "");
}
Insert cell
parser = require("https://bundle.run/wellknown@0.5.0")
Insert cell
Insert cell
geojsonFile = makeGeojson(dataJson)
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