Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map with D3.js!

Public visualization

Viewing a saved revision (read-only)

85d154a82b024b148e12be8453c5e9f5

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