Viewing a saved revision (read-only)
8641dbe1e93347738155b72c6b54d8fa
Cost of Living World Map With Country Selection and Color Scale
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 descriptionSimple 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.