🌍 Public
Viewing a saved revision (read-only)
adc401a99e5149d0a7276de3ff21309e
Let's make a map with D3.js!
This example demonstrates how to create a world map using D3.js, displaying countries as red polygons with white strokes against a blue spherical backdrop. The visualization uses a Natural Earth projection via `d3.geoNaturalEarth1` and renders geographic features with `d3.geoPath`. Country boundaries come from the World Atlas TopoJSON dataset (110m resolution), which is loaded asynchronously and converted to GeoJSON using `topojson.feature`. The SVG elements are styled through CSS, with the sphere filled in blue and country borders outlined in black.
AI-generated description