Published
Edited
Feb 15, 2019
1 fork
4 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
airports = await d3.csv("https://gist.githubusercontent.com"
+ "/mbostock/b5c3549cbe0a68649f87952b73d9983c"
+ "/raw/631e77d2f2724d0d4b35dd9bb3a25b8c09d4a622"
+ "/airports.csv", d => ({
name: d.name,
lat: +d.latitude,
lon: +d.longitude
}))
Insert cell
points = airports.map(d => [d.lon, d.lat])
Insert cell
// Create geoVoronoi mesh using d3-geo-voronoi
// Be mindful of order when passing [lon, lat] argument
mesh = d3.geoVoronoi(points).cellMesh()
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