Skip to main content
100%

Circles on a Map

✓ Published0🌍 Public
Zzhangfa
Last edited Aug 11, 2020
Created on Aug 7, 2020
Forked from world map

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

Similar vizzes