Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Summarizing Coronavirus Data

Public visualization

Viewing a saved revision (read-only)

a400a10e8c184248b7d733efbc89e7fb

Summarizing Coronavirus Data

0 stars0🌍 Public
OOleg Zhernovoy
Last edited Dec 13, 2022
Created on Dec 13, 2022

This example summarizes the Johns Hopkins Coronavirus Dataset, displaying the total global death count and the latest recorded date in a large text format. It loads the time-series CSV, extracts the final column of data, and sums all values using JavaScript's `reduce` method. The `d3.csv` function parses the data, while the `d3.format` API formats the number with commas. The resulting message is rendered inside a `<pre>` element, providing a stark numerical overview of the pandemic's impact.

AI-generated description

This program loads and parses the Johns Hopkins Coronavirus Dataset