React Performance Optimization - Episode 45
This interactive visualization combines a world bubble map and a time-series histogram to explore global migrant deaths in 2019. Users brush over the histogram to filter the map, which plots circles sized by the number of dead and missing at each location. The code uses React with `useMemo` for performance, D3 v5 utilities like `geoNaturalEarth1`, `geoPath`, `geoGraticule`, and `scaleSqrt`, and renders via SVG. Data comes from the Missing Migrants Project and world boundaries from World Atlas TopoJSON.
AI-generated descriptionMemoized
- xScale
- binnedData
A world map showing cities with population greater than 50,000. City data from Simplemaps: World Cities Database.
Country boundaries from World Atlas TopoJSON, polished for visual style, including graticules.
This iteration is optimized for performance using React's useMemo hook.