Circles on Map
✓ Published0🌍 Public
This example visualizes global population data by drawing semi-transparent circles on a natural Earth projection map. Each circle is positioned at a country's centroid using `d3.geoCentroid` and scaled in radius according to 2018 population figures via `d3.scaleSqrt`. Countries without data appear in light red, while others are gray. The visualization includes an interactive zoom feature using `d3.zoom` and two legends: a color legend for economy types and a size legend for population, built with custom React components and rendered as SVG. Data is loaded from CSV and TopoJSON files using `d3.csv` and `d3.json`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed