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)

84d13776e50746a097e5f90b4ccccabd

Coronavirus Deaths by Country over Time (with Voronoi Hover)

0 stars2🌍 Public
LLeandro Collares
Last edited Apr 25, 2020
Created on Apr 8, 2020

This example displays coronavirus death totals over time for multiple countries as a log-scale line chart, using data from the Johns Hopkins Coronavirus Dataset. Hovering over any point triggers a Voronoi overlay to highlight the nearest data point, illuminating the corresponding country’s line and displaying a tooltip with the date, country name, and death count. Built with React and D3 v5, the visualization uses `scaleTime`, `scaleLog`, and `line` generators to draw paths, while `d3.Delaunay.from` constructs the Voronoi cell for hover detection.

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.