Skip to main content
100%

Testing

✓ Published0🌍 Public
JJack Hanlon
Last edited Oct 24, 2024
Created on Oct 24, 2024

This visualization displays NBA team locations on a map of the US and Canada, with circles representing team scores. Users can toggle team visibility with checkboxes and switch between proportional and classed circle scaling using radio buttons. The code uses `d3.geoAlbersUsa` projection and `d3.geoPath` to render map outlines from GeoJSON sources, while `d3.scaleSqrt` and `d3.scaleThreshold` control circle radius. Data comes from the 2023-2024 NBA season, utilzing team coordinates and census population data for context.

AI-generated description

Simulated COVID maps, inspired by https://coronavirus.jhu.edu/map.html

For context, see this twitter thread: https://twitter.com/mappingmashups/status/1382446649327296514

2016 Canada Census Division populations from: https://www12.statcan.gc.ca/census-recensement/2011/geo/bound-limit/bound-limit-2016-eng.cfm 2019 US county populations from: https://www.census.gov/data/datasets/time-series/demo/popest/2010s-counties-total.html

Classed legend more or less copied from the Johns Hopkins map:

<img src="https://i.imgur.com/H3KJrMp.png" alt="map legend" width="50%"/>
MIT Licensed

Similar vizzes