🌍 Public
Viewing a saved revision (read-only)
be92ec2c3fc7401f9eb0ca0e0bcd908a
React + D3 Axes
Wwindwaver
Last edited Apr 15, 2021
Created on Apr 15, 2021
This example shows a React line chart tracking cumulative global COVID-19 deaths over time, using data from a CSSE GitHub CSV. Two marker lines highlight the current date and the 3,000,000 death threshold, with the axes rendered via D3’s `axisBottom` and React refs. The chart uses `scaleTime`, `scaleLinear`, and `line` generators to compute the path, while SVG elements handle the visualization. Loading is handled asynchronously with `useData` and `csv`, and the grid lines use custom tick styling.
AI-generated description