Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sample code of Coronavirus Deaths Over Time by Country

Public visualization

Sample code of Coronavirus Deaths Over Time by Country

0 stars0🌍 Public
Ssmile2git
Last edited Jun 19, 2021
Created on Jun 19, 2021

This visualization shows cumulative COVID-19 deaths over time for each country, with each country represented as a separate colored line on a logarithmic scale. The React component builds an SVG chart using D3 v5 scales (`scaleTime`, `scaleLog`) and axis generators. Data comes from the Johns Hopkins COVID-19 dataset via `d3.csv`, and the line generator uses `d3.line` with time parsing via `timeParse`. Each path receives a random RGB stroke color, while gridlines and axis labels are rendered through reusable D3 axis components.

AI-generated description

Line chart of Coronavirus cases to date. Data from Johns Hopkins Coronavirus Dataset.

Comments

Sign in to join the discussion.

MIT Licensed