Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
NNilla
Last edited Mar 28, 2019
Created on Mar 28, 2019

This example demonstrates how to create a world map using D3.js, displaying countries as light green shapes with faint black outlines on an SVG canvas. The map uses a conic conformal projection defined through D3's `geoConicConformal` and `geoPath` APIs. It loads geographic boundary data from the world-atlas TopoJSON source, processes it with the `topojson` library’s `feature` function, and renders each country as an SVG path. The visualization also generates a background path, with a commented-out sphere class suggesting an optional ocean fill.

AI-generated description
MIT Licensed

Similar vizzes