Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Coronavirus Deaths with D3 Axis

Public visualization

Coronavirus Deaths with D3 Axis

0 stars1🌍 Public
KKtuzinowski
Last edited Jul 30, 2021
Created on Jul 30, 2021

This example visualizes the global cumulative death toll from the Johns Hopkins Coronavirus Dataset as a line chart over time. The chart plots daily totals, with a bold black line for the trend, and highlights two reference points: a horizontal marker at 4,000,000 deaths and a vertical “now” marker at the latest date in the data. Built with React and d3.v7, it uses `scaleTime`, `scaleLinear`, and `line` from D3 to generate the path, while `axisBottom` from D3 renders the x-axis with gridlines. The SVG output is styled with CSS, and the data is fetched and parsed via `csv` and `timeParse`.

AI-generated description

This program loads and parses the Johns Hopkins Coronavirus Dataset

Comments

Sign in to join the discussion.

MIT Licensed