Public
Edited
Mar 5, 2023
Insert cell
Insert cell
Insert cell
Plot.plot({
projection: "equal-earth",
width,
marks: [
Plot.geo(land, { fill: "#000" }),
Plot.graticule(),
Plot.sphere(),
Plot.dot(query, {
x: "lng",
y: "lat",
filter: d => d.year == yearSelect,
stroke: "red"
})
]
})
Insert cell
land = topojson.feature(land50m, land50m.objects.land)
Insert cell
land50m = FileAttachment("land-50m.json").json()
Insert cell
import {database} from "@akraieski/formula-1-sqlite-chart-template"
Insert cell
database
SELECT races.year, circuits.name, circuits.lat, circuits.lng, circuits.country
FROM races LEFT JOIN circuits on races.circuitId=circuits.circuitId;
Insert cell
d3 = require("d3@6")
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