Skip to main content
100%

Map

✓ Published0🌍 Public
VVlad Bogo
Last edited Dec 18, 2020
Created on Dec 17, 2020
Forked from D3

This example visualizes world countries as a choropleth-style map, coloring each country green with white borders on a dark blue spherical backdrop. The map renders as SVG using D3.js with a Natural Earth projection via `d3.geoNaturalEarth1`, and country boundaries are generated through `d3.geoPath`. Geographic data loads from the world-atlas TopoJSON file (countries-110m.json), which is converted to GeoJSON using the `feature` function from the topojson library. Hovering a country changes its fill to red, and each country includes a title tooltip displaying its name.

AI-generated description
MIT Licensed

Similar vizzes