Skip to main content
100%

Choropleth Map_test2

✓ Published0🌍 Public
Kknut_ivar_osvoll@hotmail.com
Last edited Sep 13, 2024
Created on Aug 5, 2021
Forked from Choropleth Map

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.

AI-generated description

Topics Making the Color Legend Clickable Implementing Unidirectional Data Flow Highlingting the selected color value Componentizing the Choropleth Map Highlighting countries using the selected color value

MIT Licensed

Similar vizzes