Skip to main content
100%

Coronavirus Deaths by Country over Time (with Voronoi Hover)

✓ Published0🌍 Public
ZZarak
Last edited Apr 25, 2020
Created on Apr 25, 2020

This example displays cumulative COVID-19 deaths per country over time using a log-scaled line chart. A Voronoi overlay, constructed with `d3.Delaunay`, enables precise hover detection across all data points, highlighting the nearest country’s line and displaying a tooltip with the death count, country name, and date. The chart uses `d3.scaleTime`, `d3.scaleLog`, and `d3.line` with React for rendering, pulling timeseries data from the Johns Hopkins COVID-19 dataset.

AI-generated description

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

Hover to see details and illuminate lines.

MIT Licensed

Similar vizzes