Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cost of Living World Map With Country Selection and Color Scale

Public visualization

Cost of Living World Map With Country Selection and Color Scale

0 stars1🌍 Public
Sste.jendritz@gmail.com
Last edited Nov 9, 2024
Created on Nov 3, 2024

This interactive choropleth maps the global cost of living index, encoding each country’s relative expense with a red-to-blue color gradient derived from a sequential scale. Hovering over a country displays its name, while clicking attempts to open a modal window, which is only partially implemented. The visualization uses D3’s `geoNaturalEarth1`, `geoPath`, and `geoGraticule` to render the world map, along with a custom `colorLegend` component. Data comes from a local CSV file, with geographic boundaries loaded from a TopoJSON world atlas.

AI-generated description

Simple world map showing cost of living index per country represented by color gradient. Closer to blue is high cost of living while closer to red is low cost of living.

Comments

Sign in to join the discussion.

MIT Licensed