HTML Starter
✓ Published0🌍 Public
This example displays an interactive world map with countries colored according to their numeric ID modulo 10, using a spectral color scale to distinguish the resulting categories. The visualization uses D3 v5 with a Natural Earth projection via `d3.geoNaturalEarth1` and `d3.geoPath`, while loading country boundaries from a topojson file. A custom color legend with circles and text labels is built using D3 selections and scales, and the map supports panning and zooming through `d3.zoom`. Population data from a CSV file is not directly displayed; instead, country names and their category values appear as tooltips on click.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed