Skip to main content
100%

React + d3 Axes

✓ Published1🌍 Public
Ccynichole
Last edited Mar 17, 2022
Created on Mar 16, 2022

This example shows a React-based line chart of global COVID-19 death totals over time, rendered as an SVG. The chart displays a black trend line with dashed marker lines for the 10,000-death threshold and the most recent date, using d3.scaleTime and d3.scaleLinear for axes. d3.axisBottom generates the x-axis with grid lines, while custom React components (XMarkerLine and YMarkerLine) annotate key values. Data comes from a CSSE COVID-19 time-series CSV, loaded with d3.csv and processed in a custom useData hook.

AI-generated description
MIT Licensed

Similar vizzes