Skip to main content
100%

Sample code of Coronavirus Deaths Over Time by Country

✓ Published0🌍 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.

MIT Licensed

Similar vizzes