Skip to main content
100%

Choropleth Map

✓ Published1🌍 Public
NNico Donovan
Last edited Jul 17, 2020
Created on Jul 17, 2020

This choropleth map colors countries by their economy classification using an ordinal color scale. Users can zoom and pan the map, and hovering over a country displays its name in a tooltip. The visualization pairs TopoJSON world geography with tabular TSV data from the World Atlas, merging them via `d3.json` and `d3.tsv`. It renders with SVG paths through `d3.geoPath` and `d3.geoNaturalEarth1`, and includes a custom color legend built with D3’s general update pattern.

AI-generated description

Integrating TopoJSON with tabular data

Creating a loadAndProcessData module

Visualizing an ordered attribute with color

Showing data from 2 attributes in tooltip

Adding a color legend

MIT Licensed

Similar vizzes