Circles on a Map
✓ Published0🌍 Public
This visualization combines a choropleth map with proportional circles to display population data by country. The map uses D3’s geoNaturalEarth1 projection and geoPath, while circles are positioned via pathGenerator.centroid and sized with a square-root scale. Population data from a CSV is joined to TopoJSON world boundaries, and countries missing 2018 data are shaded red. An interactive size legend is rendered using custom D3 components, and zooming is enabled through the event and zoom APIs.
AI-generated description数据源整理
sizeLegend.js组件
计算不规则重心
重心画圆
MIT Licensed