Skip to main content
100%

ICE8 NIHA

✓ Published1🌍 Public
118121a1545
Last edited Oct 30, 2025
Created on Oct 30, 2025
Forked from D3 Starter

This example displays a world choropleth base map using the Natural Earth projection, offering a visually balanced view of global landmasses and country borders. The visualization loads country boundary data from the world-atlas TopoJSON file via `d3.json`, then converts it to GeoJSON features using `topojson.feature` and mesh borders with `topojson.mesh`. The projection is applied through `d3.geoNaturalEarth1()` and paths are generated with `d3.geoPath`, while the SVG output renders land polygons with hover tooltips and boundary lines through D3's selection and joining API.

AI-generated description

ICE-8 Q1.1 — World Map (Natural Earth)

What this shows: A world choropleth base (no colors yet) using the Natural Earth projection.

Why this projection? Natural Earth gives a visually balanced world view with a good compromise between shape and area.

How to run

  1. Use the provided index.html (with importmap) and style.css.
  2. Paste this index.js and hit Run in VizHub.

Files

  • index.html — includes importmap + <svg id="viz">
  • style.css — simple styles for land/borders
  • index.js — draws countries + borders from world-atlas TopoJSON
MIT Licensed

Similar vizzes