Project | Primary Balance | Chloro
✓ Published1🌍 Public
This example visualizes each country’s economy type and primary balance using a choropleth world map. Countries are colored by their economic classification through a categorical color scale with a custom legend, while hovering reveals the country name and primary balance value. The map is rendered as SVG using `d3.geoPath` with an equirectangular projection, and country outlines come from TopoJSON data. D3’s `d3.zoom` enables panning and zooming, and the visualization uses `d3.scaleOrdinal` and `schemeSpectral` for color mapping.
AI-generated descriptionMIT Licensed