This is a React-based visualization application that shows the wealth transfer patterns between countries in the Global North and Global South.
- Interactive world map using geographic boundaries
- Visualization of different wealth flow types (profit repatriation, resource extraction, debt service, etc.)
- Filtering by flow type
- Detailed tooltips with country and flow information
- Summary statistics of global wealth flows
- Clone this repository
- Install dependencies:
npm install-
Download the world topology data:
You need to download the world geography data in TopoJSON format. The easiest way to do this is:
mkdir -p src/data curl -o src/data/world-110m.json https://unpkg.com/world-atlas@2.0.2/countries-110m.json
Alternatively, you can save the file manually from https://unpkg.com/world-atlas@2.0.2/countries-110m.json and save it in the
src/datadirectory. -
Create a
worldData.jsonfile:Instead of using dynamically fetched data, this visualization uses a preloaded JSON file. Create a file named
worldData.jsonin thesrcdirectory with the contents of the downloaded TopoJSON world map data.
npm startThe application will be available at http://localhost:3000.
GlobalWealthFlow.jsx- Main component containing the map visualizationApp.js- Root React componentindex.css- Tailwind CSS imports and global stylesworldData.json- World map data in TopoJSON format (you need to create this from downloaded data)
- React
- react-simple-maps (for geographic visualization)
- d3-scale (for scaling data values to visual properties)
- topojson-client (for handling TopoJSON data)
- react-tooltip (for tooltips)
- Tailwind CSS (for styling)
The wealth flow data in this visualization is representative and simplified for demonstration purposes. In a real-world application, this data should be replaced with accurate economic data from reliable sources such as:
- World Bank
- International Monetary Fund (IMF)
- United Nations Conference on Trade and Development (UNCTAD)
- Organization for Economic Cooperation and Development (OECD)
You can modify the wealth flow data in the wealthFlows array in GlobalWealthFlow.jsx to reflect different economic scenarios or more accurate data.
