Coronavirus Deaths with D3 Axis
This example visualizes the global cumulative death toll from the Johns Hopkins Coronavirus Dataset as a line chart over time. The chart plots daily totals, with a bold black line for the trend, and highlights two reference points: a horizontal marker at 4,000,000 deaths and a vertical “now” marker at the latest date in the data. Built with React and d3.v7, it uses `scaleTime`, `scaleLinear`, and `line` from D3 to generate the path, while `axisBottom` from D3 renders the x-axis with gridlines. The SVG output is styled with CSS, and the data is fetched and parsed via `csv` and `timeParse`.