Skip to main content
100%

React + D3 Axis

✓ Published1🌍 Public
Jj-PGi
Last edited Aug 5, 2021
Created on Aug 5, 2021

This chart visualizes the cumulative global death toll from COVID-19 over time, sourced from the Johns Hopkins CSSE time-series data. Using React components, it leverages D3 functions such as `scaleTime`, `scaleLinear`, `line`, and `axisBottom` to create an SVG line chart, with horizontal and vertical marker lines highlighting the 3,000,000 death milestone and the most recent date. The chart’s axes are drawn via D3’s `axisBottom` within a React `useRef`/`useEffect` wrapper, while CSS styles the tick marks and line.

AI-generated description
MIT Licensed

Similar vizzes