Baseball Brushing on Multiple Views
This interactive visualization combines a world map of cities with a histogram of baseball player names, linked through brushing. Users can brush on the histogram to filter the cities displayed on the map. The map uses d3.geoPath for rendering country boundaries and graticules, while the histogram employs d3.bin, scaleLinear, and brushX for binning and interactive selection. React’s useState and useMemo manage state and optimize performance, with data loaded from CSV and TopoJSON sources.
AI-generated descriptionA 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.