Public
Edited
Jan 18, 2023
Fork of D3 world map
Insert cell
Insert cell
map = htl.html`<svg viewBox="0 0 ${width} 500" style="display: block;">
<path d="${path(land)}" fill="none" stroke="#000"></path>
</svg>`
Insert cell
projection = d3.geoEqualEarth().scale(350).rotate([160,0,0]).translate([480,280])
Insert cell
Insert cell
path = d3.geoPath(projection)
Insert cell
land = topojson.feature(world, world.objects.land)
Insert cell
world = FileAttachment("countries-50m.json").json()
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