Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

GDP World Map

Public visualization

GDP World Map

0 stars0🌍 Public
TTom Heffernan
Last edited May 1, 2024
Created on May 1, 2024
Forked from Simple World Map

This world map visualizes geographic GDP data using a choropleth approach, coloring countries by their economic output. The example loads GeoJSON map data and renders it as SVG paths with `d3.geoPath`, while numeric GDP values drive a color scale. It uses `d3.json` to fetch the dataset and `d3.scaleThreshold` to map values to fill colors, with a tooltip providing details on hover. Built with D3 v6, the visualization demonstrates basic geographic mapping and data-driven styling in an SVG container.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed