Skip to main content
100%

Voronoi Overlay with Labels

✓ Published0🌍 Public
Ffjvoris
Last edited Mar 14, 2023
Created on Mar 12, 2023

A multi-line chart displays cumulative COVID-19 deaths over time for the US, Italy, and France, using a log-scaled y-axis. A Voronoi overlay, built with `d3.Delaunay` and `voronoi.renderCell`, captures mouse hovers to highlight the nearest data point and its line, while a tooltip shows the country, death count, and date. The visualization is rendered in SVG within a React component, updated via `useMemo` and React state, with data loaded from the CSSEGISandData COVID-19 time-series CSV.

AI-generated description

Splitting React components into multiple files using ES6 modules. Bonus: React Fragments!

MIT Licensed

Similar vizzes