Skip to main content
100%

Let's make a map with D3.js!

✓ Published2🌍 Public
Kkaviya-ds
Last edited Aug 13, 2020
Created on Aug 13, 2020
Forked from HTML Starter

This example renders a world map using D3.js and topojson, displaying country boundaries as light green shapes on a blue sphere. The visualization loads geographic data from the world-atlas TopoJSON file and converts it to GeoJSON features using the topojson `feature` function. D3’s `geoNaturalEarth1` projection and `geoPath` generator draw each country as an SVG path, with a separate path for the global sphere. The code uses the v5 API with imported functions from the d3 module, and styling applies stroke opacity to delineate borders.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes