Public
Edited
Nov 8, 2023
1 fork
1 star
Insert cell
Insert cell
Insert cell
cities = FileAttachment("cities@4.geojson").json()
Insert cell
timeForOneRotation = 20
Insert cell
center = [width / 2, height / 2];
Insert cell
projection = d3.geoOrthographic()//.rotate([83, -30])
Insert cell
initialScale = projection.scale();
Insert cell
path = d3.geoPath().projection(projection);
Insert cell
width = 960
Insert cell
height = 500
Insert cell
world = d3.json("https://gist.githubusercontent.com/sarah37/dcca42b936545d9ee9f0bc8052e03dbd/raw/550cfee8177df10e515d82f7eb80bce4f72c52de/world-110m.json")
Insert cell
topojson = require("topojson@3")
Insert cell
d3 = require("d3@7")
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