Skip to main content
100%

use d3 Axis Coronavirus data

✓ Published1🌍 Public
BBlake McCarty
Last edited May 27, 2022
Created on May 27, 2022

This example presents a line chart of cumulative global COVID-19 deaths over time, sourced from the Johns Hopkins CSSE time-series dataset. Using React with D3 v7, it maps dates to a time scale and death totals to a linear scale, rendered as an SVG path. Custom XAxis and YAxis components leverage d3.axisBottom and d3.axisLeft with gridlines, while the chart’s axes and line are styled via CSS. The visualization resizes to the window dimensions and updates through a loading state while fetching CSV data.

AI-generated description

Line chart of coronavirus data

MIT Licensed

Similar vizzes