Skip to main content
100%

52) Coronavirus with Log Y Scale and Labels

✓ Published0🌍 Public
Llefat92
Last edited Aug 24, 2023
Created on Aug 24, 2023

This example visualizes cumulative global coronavirus deaths over time using a logarithmic y-axis to accommodate the data’s exponential growth. The line chart, rendered as an SVG path via React and d3.v5, labels the axes and includes a marker line at 10,000 deaths. The code uses `d3.scaleLog`, `d3.scaleTime`, `d3.line`, and `d3.axisLeft` with tick formatting, pulling data from the Johns Hopkins Coronavirus Dataset.

AI-generated description

Line chart of Coronavirus cases to date. Data from Johns Hopkins Coronavirus Dataset.

MIT Licensed

Similar vizzes