Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing Coronavirus Data

Public visualization

Loading and Parsing Coronavirus Data

0 stars0🌍 Public
KKevin McMorrow
Last edited Dec 8, 2021
Created on Dec 8, 2021

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

Comments

Sign in to join the discussion.

MIT Licensed