Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8 Map

Public visualization

Viewing a saved revision (read-only)

6f6594e786ab4ef7a52e066bfe131880

Activity 8 Map

0 stars1🌍 Public
SSharankumar02
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This example displays an interactive world map using a spherical projection, with countries rendered as filled paths and an ocean backdrop. Panning and zooming are enabled through D3’s zoom behavior, which applies transforms to the entire SVG. The map is built with `d3.geoEquirectangular` for projection, `d3.geoPath` for generating paths, and `topojson.feature` to convert TopoJSON data from the world-atlas dataset into GeoJSON. Countries are colored light green and turn maroon on hover.

AI-generated description

A demonstration of how to start using D3 version 6.