Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Summarizing Coronavirus Data

Public visualization

Summarizing Coronavirus Data

0 stars0🌍 Public
Ffjvoris
Last edited Mar 10, 2023
Created on Mar 10, 2023

This example displays the total global COVID-19 deaths as a large, prominently styled number, along with the date of the latest data column. It loads a time series CSV from the Johns Hopkins CSSE repository using `d3.csv` and a Promise, then parses the last column’s values. The sum is computed with `Array.reduce` and formatted with `d3.format`. The resulting message is inserted into the DOM via `textContent` within a React-agnostic HTML page, using D3 v5.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed