Public
Edited
Apr 4
Fork of Filter
1 fork
11 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
renameproperties = geo.iterate(world, {
func: (d) => ({
...d,
properties: {
id: d.properties.CNTR_ID,
name: d.properties.CNTR_NAME
}
})
})
Insert cell
Insert cell
Insert cell
dot = geo.iterate(world, {
func: (d) => ({
...d,
geometry: { type: "Point", coordinates: d3.geoCentroid(d) }
})
})
Insert cell
viz.draw({
params: { width: 600 },
layers: [
{ datum: world, fill: "#CCC" },
{ data: dot, fill: "#DF4B47" }
]
})
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