Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Summarising coronavirus data

Public visualization

Viewing a saved revision (read-only)

538ab1f8307d4dbc874201e4a022c74e

Summarising coronavirus data

0 stars0🌍 Public
Ccynichole
Last edited Mar 16, 2022
Created on Mar 14, 2022

This visualization summarizes COVID-19 death data from the John Hopkins coronavirus dataset by displaying the total number of deaths and the latest date as large red text. It loads a CSV file with `d3.csv`, extracts the last date column, and sums all death values using `Array.reduce`. The result is formatted with `d3.format` and injected into an HTML `<pre>` element via `textContent`, updating the page with a single, stark numeric summary.

AI-generated description

This program loads and parses the John Hopkins coronavis dataset;