Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map with D3.js

Public visualization

Let's make a map with D3.js

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed