Voronoi Overlay with Labels
✓ Published0🌍 Public
Ee-ines
Last edited Jun 1, 2021
Created on May 5, 2021
This example visualizes cumulative COVID-19 death counts over time for multiple countries using a line chart with a logarithmic y-axis. It renders the paths in SVG and overlays a Voronoi diagram created with `d3.Delaunay` to enable precise mouse hovering on any line segment, highlighting the corresponding country’s path and displaying a tooltip with the country name, death total, and date. Data comes from a CSV file of global time-series deaths, processed with `csv` and `timeParse`. Interactions are managed via React state, while axes are drawn with `axisBottom` and `axisLeft`.
AI-generated descriptionMIT Licensed