Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Coronavirus Deaths by Country over Time (with Voronoi Hover)

Public visualization

Viewing a saved revision (read-only)

97e7392a81864418a08114e4de37731a

Coronavirus Deaths by Country over Time (with Voronoi Hover)

0 stars0🌍 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.