Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map!

Public visualization

Let's make a map!

0 stars1🌍 Public
RRoger Yu-Hsiang Lo
Last edited Feb 14, 2020
Created on Feb 6, 2020

This example creates a world map by rendering GeoJSON country boundaries onto an SVG. It first draws a blue sphere background and then overlays light green country paths with subtle black strokes, using the Natural Earth projection. The code loads world topology data from the world-atlas package and converts it to GeoJSON using topojson’s `feature` method, then applies `d3.geoPath` with `geoNaturalEarth1` for projection. Both D3 and TopoJSON libraries are included via CDN.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed