Skip to main content
100%

Summarizing Coronavirus Data

✓ Published0🌍 Public
Ee-ines
Last edited Apr 27, 2021
Created on Apr 27, 2021

A plain-text visualization summarizes the global death toll from the John Hopkins Coronavirus Dataset by loading the time-series CSV with `d3.csv` and parsing the most recent date column. It calculates the total deaths using the array `reduce` method with a custom `sum` accumulator function, then formats the number with the `format` function from the d3 library. The result, displaying the death count and the latest date, is rendered as large red text inside a `<pre>` element using the DOM `textContent` property.

AI-generated description

This program loads and parses the John Hopkins Coronavirus Dataset.

MIT Licensed

Similar vizzes