React + d3 axes
✓ Published1🌍 Public
Ssurikmeetr
Last edited Apr 24, 2021
Created on Apr 22, 2021
Forked from Coronav deaths line chart 2 margin convention
This example shows a line chart of global COVID-19 deaths over time, using a dataset fetched from the CSSE at Johns Hopkins. The visualization highlights specific y-axis milestones (1, 2, and 3 million deaths) with teal marker lines and a vertical marker at the latest date. The React component `LineChart` uses D3’s `scaleTime`, `scaleLinear`, `line`, and `axisBottom` to render axes and the line path, while separate React elements (`XMarkerLine`, `YMarkerLine`) draw the annotation lines. The SVG output is styled with CSS, hiding the axis domain and using light gray ticks for gridlines.
AI-generated descriptionReact + D3 to display coronav line chart
MIT Licensed