Skip to main content
100%

Basic Map with D3

✓ Published1🌍 Public
FFhouston17
Last edited Jun 30, 2020
Created on Jun 16, 2020
Forked from Intro to D3

This example displays a world map using an SVG projection, with countries filled in green and the surrounding sphere rendered in turquoise. It uses the d3.geoPath and d3.geoNaturalEarth1 projection APIs from D3 v5, along with the topojson feature function to extract country boundaries from the world-atlas 110m dataset. The map renders by appending SVG path elements for each country, with a sphere outline drawn first to shape the background.

AI-generated description
MIT Licensed

Similar vizzes