Skip to main content
100%

1Question

✓ Published0🌍 Public
Vvunnamnandini13@gmail.com
Last edited Nov 3, 2025
Created on Nov 3, 2025
Forked from HTML Starter

This example displays a world population choropleth map, coloring selected countries from a custom dataset by population using a blue color scale. The visualization is built with D3 v7 and TopoJSON, projecting geographic data with `d3.geoNaturalEarth1()`. Country polygons are rendered using `d3.geoPath()`, and a hover tooltip shows the country name and population. A quantized legend created with `d3.scaleQuantize()` and `d3.axisBottom()` maps the color range to population values.

AI-generated description
MIT Licensed

Similar vizzes