Fork of Map with Selectable Countries
✓ Published0🌍 Public
This fork of a world map allows users to click individual countries to highlight them while dimming the rest. It uses a natural Earth projection with `d3.geoPath` to render country and sphere outlines in SVG, with data sourced from the world-atlas TopoJSON and TSV files. A `d3.scaleOrdinal` with the `schemeSpectral` palette colors countries by economic group, and a linked color legend supports selection toggling. Pan and zoom are enabled via `d3.zoom`, while country opacity and stroke width respond to the current selection state.
AI-generated descriptionMIT Licensed