Skip to main content
Public

Share visualization

Loading preview…

City density filtering by population and proximity

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

City density filtering by population and proximity

0
AAlan McConchie
Last edited Aug 22, 2021
Created on Jul 23, 2021

This example displays a world map with cities filtered by population, showing only those with over 2 million residents as semi-transparent circles scaled by population size via `d3.scaleSqrt`. Geographic context comes from World Atlas TopoJSON, rendered using `d3.geoNaturalEarth1` and `d3.geoPath`. React manages the component state, fetching city data from an OpenStreetMap CSV through a custom `useCities` hook, while the `Marks` component renders the projected spheres, landmasses, and boundaries.

AI-generated description

A world map showing cities with population greater than 50,000. City data from OpenStreetMap, querying all features with place=city.

Country boundaries from World Atlas TopoJSON, polished for visual style.

Comments

Sign in to join the discussion.

ISC Licensed