Skip to main content
100%

Voronoi Overlay with Labels

✓ Published0🌍 Public
TThomas Cormican
Last edited Jan 15, 2022
Created on Jan 15, 2022

This example displays global COVID-19 cumulative death totals over time as multiple line charts, one per country, on a logarithmic y-axis. Hovering over any point highlights that country’s entire line and shows a tooltip with the country name, death count, and date. The interactive hover detection uses a Voronoi overlay generated from the data points via `d3.Delaunay` and `d3.voronoi`, mapping mouse events to the nearest point. The line chart is built with React and rendered as SVG, using `d3.scaleTime`, `d3.scaleLog`, and `d3.line`, with data sourced from the CSSEGISandData COVID-19 time series CSV.

AI-generated description
MIT Licensed

Similar vizzes