Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

coronavirus line chart

Public visualization

coronavirus line chart

0 stars0🌍 Public
BBlake McCarty
Last edited May 18, 2022
Created on May 18, 2022

This visualization displays the total number of coronavirus deaths worldwide as a single numeric readout, updated to the dataset’s most recent date column. It uses React with a custom `useData` hook that loads the Johns Hopkins CSSE time-series CSV via `d3.csv`, then sums the last column’s values across all countries. The total is formatted with `d3.format` (the `format(",")` comma formatter) and rendered inside a React component. While called a “line chart,” the code only presents the cumulative death toll as a message, not an actual line graph.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed