Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making a map

Public visualization

Fork of Making a map

0 stars0🌍 Public
AAbhishek Singh
Last edited Feb 13, 2022
Created on Feb 13, 2022
Forked from Making a map

This example renders a world map using a Natural Earth projection sourced from the world-atlas package. The visualization displays countries as white SVG paths on a dark teal sphere, with a hover effect that highlights each country in amber. Built with d3 v5, it employs `d3.geoNaturalEarth1` and `d3.geoPath` to generate the country shapes, and `topojson.feature` to convert the TopoJSON data into geographic features. The interactive zoom functionality is implemented via `d3.zoom`, which updates the group transform on each zoom event.

AI-generated description

A simple map from d3 using topojson.

Comments

Sign in to join the discussion.

MIT Licensed