Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

#Utrecht2024TASK: Voronoi and Tooltips reactive

Public visualization

#Utrecht2024TASK: Voronoi and Tooltips reactive

1 star1🌍 Public
MMatthias Stahl
Last edited Nov 25, 2025
Created on Jul 2, 2024

A scatter plot displays 2007 country data—GDP per capita on the x-axis, life expectancy on the y-axis, and population encoded by circle radius, colored by continent. The code uses `d3.scaleLinear`, `d3.scaleSqrt`, and `d3.scaleOrdinal` from d3.js to map the data. A `Delaunay` triangulation generates a Voronoi diagram, whose invisible cells serve as hover targets, triggering a custom tooltip that names the country and matches its fill color.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed