🌍 Public
Viewing a saved revision (read-only)
ce08acdea46849499e18beada3f60b9d
map with D3.js!
This example displays a world map using D3.js, with each country rendered as a gray SVG path that turns red on hover. It uses the `d3.geoMercator` projection and `d3.geoPath` to draw the countries from TopoJSON data loaded via `d3.json` from the world-atlas package. The map also fetches COVID-19 statistics from the WHO’s global table CSV, though the data is only logged to the console rather than visualized. The code relies on both D3 v5 and the TopoJSON client library.
AI-generated description