🌍 Public
Viewing a saved revision (read-only)
8e7e185e4f5a47c28507e66469b6273f
Loading and Parsing Coronavirus Data
This example shows the total number of global COVID-19 deaths from a live CSV dataset, displayed as a large red number in a web page. It loads the data with `d3.csv` and identifies the latest date column from the dataset’s headers, then sums the death counts from all countries using `Array.reduce`. The result is formatted with `d3.format` and inserted into the page via `document.getElementById`. The data source is the CSSE COVID-19 time series from Johns Hopkins University.
AI-generated description