Public
Edited
Feb 10, 2023
Insert cell
Insert cell
data_raw = d3.csv(
"https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2023/2023-01-10/PFW_2021_public.csv"
)
Insert cell
Inputs.table(data_raw)
Insert cell
globe = Plot.marks([
Plot.graticule(),
Plot.geo(land, { fill: "currentColor" }),
Plot.sphere(),
Plot.dot(data_raw, {
x: "longitude",
y: "latitude",
fill: "how_many",
r: "how_many"
})
])
Insert cell
globe.plot({
height: 640,
inset: 1,
projection: { type: "orthographic", rotate: [100, -30] }
})
Insert cell
world = FileAttachment("land-110m.json").json()
Insert cell
land = topojson.feature(world, world.objects.land)
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