Skip to main content
100%

D3 Course 12: Circles on a Map

✓ Published0🌍 Public
GGabrz
Last edited May 13, 2020
Created on May 12, 2020

This example visualizes global population estimates for 2018 as semi-transparent circles projected onto a natural Earth map. It uses d3.geoNaturalEarth1 and d3.geoPath to render countries from TopoJSON, while d3.geoCentroid computes each country’s center for circle placement. The data comes from a UN population CSV, merged by country code, with missing or unmatched values highlighted in red. Circles are sized using d3.scaleSqrt, and interactive zoom is enabled via d3.zoom. A custom legend displays population value ticks.

AI-generated description

Data Visualization with D3 course; Circles on a Map

<h3>Circles on a Map</h3> <table> <th align="left">Topics</th> <tr> <td> <ul> <li><b>Converting an Excel to CSV</b></li> <li><b>Matching identifiers (e.g. "076" vs "76")</b></li> <li><b>Handling (and visualizing) missing data</b></li> <li><b>Computing and projecting centroids</b></li> <li><b>Visualizing population using circles</b></li> <li><b>Tweaking styles and interaction</b></li> </ul> </td> </tr> </table>
MIT Licensed

Similar vizzes