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 stars0🌍 Public
Ttarunkishore2303
Last edited Aug 7, 2020
Created on Aug 7, 2020

This map example renders the countries of the world using an SVG canvas and a Natural Earth projection. The visualization draws a blue sphere as a background, then fills each country's geographic boundary in light green with a semi-transparent black outline. The code uses the D3.js libraries `d3.geoPath` and `d3.geoNaturalEarth1` to project and draw the map, while the `topojson` module's `feature` function converts the TopoJSON data from the world-atlas package into plottable country features.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed