Skip to main content
100%

map with D3.js!

✓ Published0🌍 Public
TTomoyukiEguchi
Last edited Jan 17, 2021
Created on Jan 7, 2021

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
MIT Licensed

Similar vizzes