Skip to main content
100%

Let's make a map with D3.js

✓ Published1🌍 Public
CClara Hu
Last edited Mar 24, 2021
Created on Mar 24, 2021

This example shows a world map rendered as an SVG, with countries filled in light green and oceans in blue. It uses D3.js version 5 and the `d3.geoPath` API with a Natural Earth projection to generate the map geometry. Geographic data comes from the world-atlas package, loaded via `d3.json`. The code also includes a sphere outline for the globe and uses the topojson library’s `feature` function to convert the raw data into usable features.

AI-generated description
MIT Licensed

Similar vizzes