Choropleth Map_test2
This choropleth map visualizes countries by economic classification, using an ordinal color scale where each economy type receives a distinct color. A clickable legend allows users to filter the map, dimming non-selected countries while highlighting those matching the chosen category. Built with D3 v5, the visualization employs `geoPath` with the Natural Earth projection for geographic rendering, while legend interactions trigger a unidirectional data flow that updates both the map and legend opacity. The map uses SVG for crisp rendering, with country data sourced from the World Atlas TopoJSON and TSV files, and the color scale is generated from `d3.scaleOrdinal` with the Spectral scheme.