Skip to main content
100%

Basic Map

✓ Published2🌍 Public
CChris Mora
Last edited Mar 30, 2020
Created on Mar 30, 2020
Forked from D3 intro

This example displays a basic world map using an SVG canvas, rendering country boundaries with a Mercator projection. It loads geographic data from the `world-atlas` package via a JSON file and converts it into map features using the `topojson` library's `feature` function. The map is drawn with D3 v5's `geoPath` and `geoMercator` APIs, which generate the SVG path data for each country. The visualization is straightforward, showing only the landmasses without additional styling or interactivity.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes