Skip to main content
100%

World Map with D3.js

✓ Published0🌍 Public
Ssaipaidipalli
Last edited Jul 22, 2023
Created on Jul 5, 2023
Forked from Activity 8 Map

This example displays a world map using D3.js version 7, rendering country boundaries as SVG paths with a light gray fill and white stroke. It loads GeoJSON country data from a remote GitHub repository and projects it using the `d3.geoNaturalEarth1` projection defined by a `d3.geoPath` generator. The map is drawn inside a fixed 800×500 SVG element, and the included CSS defines hover states that change country colors to maroon. The implementation demonstrates basic geographic data loading, projection, and SVG rendering with D3.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes