Unlisted
Edited
Feb 4, 2023
1 fork
Insert cell
Insert cell
geoPLZ = FileAttachment("postleitzahlen2.geojson").json()
Insert cell
Plot.plot({
height: 900,
projection: projection,
marks: [
Plot.geo(geoPLZ, {
stroke: "grey",
strokeOpacity: 0.6
// fill: "orange"
}),
Plot.dot([[11.521229152237028, 48.149328045880495]], {
fill: "black"
}),
Plot.text([[11.521229152237028, 48.149328045880495]], {
text: ["München"],
dy: -10,
stroke: "white",
fill: "black",
pointerEvents: "none"
})
]
})
Insert cell
Plot.plot({
height: 900,
projection: projection,
marks: [
Plot.geo(rewind(geoPLZ), {
stroke: "grey",
strokeOpacity: 0.6,
fill: (d) => +d.properties.postcode[0]
}),
Plot.dot([[11.521229152237028, 48.149328045880495]], {
fill: "black"
}),
Plot.text([[11.521229152237028, 48.149328045880495]], {
text: ["München"],
dy: -10,
stroke: "white",
fill: "black",
pointerEvents: "none"
})
]
})
Insert cell
import { rewind } from "@fil/rewind"
Insert cell
import { projection } from "@ee2dev/maps-of-germany"
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