Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
Iimackerracher
Last edited Mar 14, 2019
Created on Mar 14, 2019

This example demonstrates a static world map using D3.js, rendering countries and the Earth’s sphere as SVG paths with a Natural Earth projection. It uses `d3.geoPath` with `d3.geoNaturalEarth1`, and the `topojson` library’s `feature` method to convert TopoJSON from the `world-atlas` dataset into GeoJSON features. The sphere is drawn in blue, countries in light green with black outlines, and the code loads data asynchronously via `d3.json`.

AI-generated description
MIT Licensed

Similar vizzes