Skip to main content
100%

Fork of #Utrecht2024TASK: Voronoi and Tooltips reactive

✓ Published0🌍 Public
SSebastian Graeff
Last edited Jul 2, 2024
Created on Jul 2, 2024

This visualization displays global health and economic data for 2007, plotting life expectancy against GDP per capita for each country. The circle size encodes population, and color denotes continent. A reactive tooltip appears on hover, displaying the country's name against its colored background. Built with Svelte and rendered as SVG, the example uses d3's `scaleLinear`, `scaleSqrt`, and `scaleOrdinal` for positioning, sizing, and coloring. It employs the `Delaunay` class from 'd3' to compute a Voronoi overlay, whose invisible paths capture mouse events to update the tooltip.

AI-generated description
MIT Licensed

Similar vizzes