Skip to main content
100%

Map

✓ Published50🌍 Public
SSahil Thapa
Last edited Oct 26, 2025
Created on Oct 26, 2025
Forked from HTML Starter

This example presents two static choropleth-style maps side-by-side: a world map using the Natural Earth projection and a U.S. map using the Albers USA projection. Both maps load TopoJSON data—from `world-atlas` and `us-atlas` datasets—and render country and state boundaries as SVG paths via `d3.geoPath` and `topojson.feature`. The world map includes a graticule generated by `d3.geoGraticule`, while the U.S. map uses `d3.geoAlbersUsa`. Regions are filled with solid colors, and hover tooltips are added using SVG `title` elements.

AI-generated description
MIT Licensed

Similar vizzes