Skip to main content
100%

Covid

✓ Published0🌍 Public
Sshaiksajidali
Last edited Apr 18, 2024
Created on Apr 18, 2024

This example presents a world map visualization of COVID-19 case data, coloring each country based on its total reported cases. The map is rendered using React and D3, with a Natural Earth projection via `d3.geoPath` and `d3.geoNaturalEarth1`. Data is loaded from a remote CSV file using the Fetch API and parsed with `d3.csvParse`. A sequential color scale using `d3.scaleSequential` and `d3.interpolateReds` maps case counts to fill colors, while country boundaries are drawn as SVG paths with white strokes. The visualization dynamically updates when new data is fetched.

AI-generated description
MIT Licensed

Similar vizzes