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 stars0🌍 Public
Kkenneth
Last edited Sep 9, 2019
Created on Sep 9, 2019

This example displays a world map rendered as SVG paths, showing country boundaries in a simple Mercator projection. The visualization loads geographic data from a world-atlas TopoJSON file and converts it to GeoJSON using the topojson `feature` method. It uses d3.json to fetch the data, d3.geoMercator for the projection, and d3.geoPath to generate the path data, appending each country as a `<path>` element to the SVG.

AI-generated description

Make a map

Comments

Sign in to join the discussion.

MIT Licensed