Skip to main content
Public

Share visualization

Loading preview…

Testing

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Testing

0
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%"/>

Comments

Sign in to join the discussion.

MIT Licensed