D3 Course 10: Choropleth Map
This choropleth map shows global economic classifications by country, with a clickable color legend that filters and highlights nations matching the selected category. It visualizes an ordered attribute across the Natural Earth projection using a spectral color scale, with tooltips displaying country names and economic values. The example integrates TopoJSON world geometry with tabular TSV data via `Promise.all` and `topojson.feature`. It uses D3 v5 APIs including `scaleOrdinal`, `geoPath`, `geoNaturalEarth1`, and `zoom` for pan/zoom interaction. The componentized code separates data loading, map rendering, and legend logic, using unidirectional data flow to update both when the legend is clicked.
AI-generated descriptionData Visualization with D3 course; Choropleth Map
<h3>Making a Choropleth Map</h3> <table> <th align="left">Topics</th> <tr> <td> <ul> <li><b>Integrating TopoJSON with tabular data</b></li> <li><b>Creating a loadAndProcessData module</b></li> <li><b>Visualizing an ordered attribute with color</b></li> <li><b>Showing data from 2 attributes in tooltip</b></li> <li><b>Adding a color legend</b></li> <li><b>Making the Color legend Clickable</b></li> <li><b>Implementing Unidirectional DataFlow</b></li> <li><b>Highlighting the selected color value</b></li> <li><b>Componentizing the Choropleth Map</b></li> <li><b>Highlighting Countries using the selected color value</b></li> </td> </tr> </table>