Chloropleath Map
✓ Published2🌍 Public
This example displays a world choropleth map coloring countries by economy type, using a natural Earth projection and an ordinal color scale. It loads geographic data from the World Atlas TopoJSON and TSV files, rendering SVG paths with `d3.geoPath` and TopoJSON’s `feature`. A zoom behavior via `d3.zoom` pans and scales the map, while a custom color legend built with SVG circles and text shows the categorical values. The map also includes tooltips via appended `title` elements, with a dark blue sphere background and black country strokes.
AI-generated descriptionAn example including some commonly used features of SVG.
MIT Licensed