Skip to main content
100%

Summarizing Coronavirus Data

✓ Published0🌍 Public
AAndre J Denais
Last edited Dec 30, 2020
Created on Dec 14, 2020

This example displays a single, large numeric summary of global COVID-19 deaths, updating in real time from the Johns Hopkins time-series dataset. It shows the total death count and the most recent date column, formatted with commas. The code uses d3.csv to load the data, then applies the array map and reduce methods to sum the latest column’s values, and d3.format to create the comma separator. The result is inserted into a pre element via the DOM’s textContent property.

AI-generated description

This Program loads and parses the Johns Hopkins Coronavirus Dataset.

MIT Licensed

Similar vizzes