🌍 Public
Viewing a saved revision (read-only)
7006d9e3d0ef4df8944a39c693f0f44f
World Map with D3.js!
This example displays a world map as an SVG, with pink countries outlined in red against a blue spherical backdrop. It uses d3.geoNaturalEarth1 for the projection and d3.geoPath to generate paths from TopoJSON data loaded from the world-atlas package. A sphere path is drawn first, followed by country features from the dataset. Hovering over a country changes its fill color, demonstrating basic interactivity within a D3 v5 workflow.
AI-generated description