Skip to main content
100%

React + D3 Axes

✓ Published0🌍 Public
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
MIT Licensed

Similar vizzes