Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Make a World Map with D3

Public visualization

Viewing a saved revision (read-only)

8acad6e3b61842c18de96d373ba6beb7

Make a World Map with D3

0 stars0🌍 Public
Aamit0623
Last edited Feb 22, 2020
Created on Feb 22, 2020
Forked from Customizing Axes

This example shows a world map colored by economy type using a categorical color scale, with hover highlighting and zoom/pan interaction. The map uses D3 v5 with `d3.geoNaturalEarth1` projection, `d3.geoPath` for rendering, and TopoJSON from the world-atlas dataset. Country boundaries are drawn as SVG paths, colored via `d3.scaleOrdinal` with `schemeCategory10`, and tooltips appear on hover. The data comes from a TSV file mapping ISO country codes to names and economies.

AI-generated description