Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
Aanuj1450
Last edited Nov 6, 2020
Created on Nov 6, 2020

This example uses a natural Earth projection to render a world map from TopoJSON data, with countries drawn as filled paths and a dark blue sphere as the base. It builds the visualization by loading the world-atlas dataset from unpkg and using `d3.geoNaturalEarth1` for the projection, `d3.geoPath` to generate SVG paths, and the `topojson.feature` method to convert TopoJSON to GeoJSON. The result is a simple, static SVG map with light green countries and translucent black strokes.

AI-generated description
MIT Licensed

Similar vizzes