Skip to main content
Public

Share visualization

Loading preview…

Circles on a Map

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

Circles on a Map

0
Ttasqon
Last edited Jul 21, 2019
Created on Jul 21, 2019
Forked from Circles on a Map

Circles on a Map visualizes country population for 2018 using sized circles positioned at each country’s centroid on a natural Earth projection. The visualization uses d3.geoPath to render the map and d3.geoCentroid to place the circles, with d3.scaleSqrt mapping population values to circle area. Users can pan and zoom via d3.zoom, and hover over countries to see pop-up tooltips with population details. Data comes from a UN population CSV and TopoJSON world atlas, loaded asynchronously via d3.csv and d3.json. A size legend is built with d3.scaleSqrt’s ticks.

AI-generated description

Visualizing population by country using circles on a map! The area of each circle corresponds to the population of the country it represents. You can also pan & zoom, and hover over each country for more information.

Comments

Sign in to join the discussion.

MIT Licensed