Public
Edited
Mar 1, 2023
Insert cell
Insert cell
Insert cell
Insert cell
import {
// dimensions,
// data,
// cities,
// merged,
// length,
// places,
// baseMap,
// borderLines,
baseColor,
fillColor,
lineColor
} from "98d9e9c1ccd2ab57";
Insert cell
globeScaler = 4000
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
world = await d3.json(
"https://cdn.jsdelivr.net/npm/world-atlas@2/countries-50m.json"
)
Insert cell
Insert cell
Insert cell
Insert cell
borders2 = topojson.mesh(world, world.objects.countries, (a, b) => a !== b)
Insert cell
Insert cell
merged2 = topojson.merge(world, world.objects.countries.geometries)
Insert cell
Insert cell
Insert cell
Insert cell
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
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