Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Project | Load color | legend

Public visualization

Viewing a saved revision (read-only)

75209ab2744b413da3666bda348dc7e7

Project | Load color | legend

0 stars1🌍 Public
MMukund Khandelwal
Last edited Oct 24, 2018
Created on Oct 24, 2018

This example visualizes world data on primary balance and economy using a choropleth map. The map projects countries with the `geoEquirectangular` projection via `d3.geoPath`, while fill colors are assigned by an ordinal color scale using a `schemeYlOrRd` palette. The data originates from a CSV file joined to the world-atlas TopoJSON. A custom legend lists the color scale's ordinal values, allowing users to click a legend item to update the map's color mapping.

AI-generated description