/Aid-Data-Visualization-Geo-Time-and-Network-Analysis-

Engineered a comprehensive dashboard to answer various questions about global AidData using D3 visualizations.

Primary LanguageJavaScript

AidData Visualization: Geo,Time & Network Analysis

In this project, I have used D3.js to engineer a comprehensive dashboard that answers various questions about global AidData.

Dataset Used : AidData Dataset

Simplified Copy of the Dataset Used : Simplified Dataset

In the AidData dataset, each row represents a financial transaction between two countries. The dataset contains the following attributes:

  • Year: year of the commitment
  • Donor: country providing the financial resource
  • Recipient: country or organization receiving the money
  • Commitment Amount: the total amount of financial resources provided
  • Coalesced Purpose Name: the purpose of the transaction

Below is an example of the data:

Graph Design: GEO

Visualization 1:

Question: How do the countries compare in terms of how much they receive and donate? Are there countries that donate much more than they receive or receive much more than they donate?

INFERENCE : In this visualization, I have considered the top few countries that donated and top few countries that recieved amounts. From the visualization, it is clear that developing countries like India, Thailand, Brazil, Colombia, etc recieve the maximum amount of aid. There are mostly newly developing countries and major developing countries in this list. Therefore, from this visualization - one can conclude that, counntries like India, Brazil, Indonesia, etc receive much more than they donate.

On the contrary, countries like United States, Germany, United Kingdom are developed nations that donate more aid than they recieve. This visualization helps us easily demarcate between the countries that are recieving aid and the ones that are donating aid. We can notice that, there are 2 axis that help us achieve this easy demarcation.

The idea behind having 2 axis is to use one for donated amount and one for received amount. Furthermore, we are also using 2 different set of colors for the bar representations. Additionally, we are also displaying the name of the country on the diverging bars - which makes it easier to distinguish and understand which country falls into which category.

The goal of this visualization is to consider the top countries that are donating and receiving aid. We depict these countries using diverging color bars. This form of visualization helps us understand both the ends of the spectrum. Furthermore, we are not considering all the countries in the dataset - as we have picked a narrow scale. Using a much broader scale can help us visualize more countries, but some countries would not have a visible bar representation. Therefore, we pick a relevant scale to get an overall idea of the top few countries.

View Notebook : Click Here

Visualization 2:

Question: Do the countries that mostly receive or mostly donate tend to cluster around specific geographical areas of the world? Are there neighboring countries that have radically different patterns in terms of how much they receive vs. how much they donate?

INFERENCE : In order to depict the geographical distribution of Aid Data, I have used a world map with a spectrum of 2 colors. In this case, I have used "RED" to depict countries where the received amount is more and "NAVY BLUE" to depict countries where donated amount is greater than the recevied amount. The shade of RED/NAVY BLUE encodes the absolute difference between the amount donated and the amount received in $ Billion. Essentially, a very light shade of RED would mean that the country has recieved aid in small amounts. Similarly, a light shade of BLUE would mean that the country has donated aid in small amounts.

Therefore, we can conclude that the countries that donate more are United States, European Nations like Germany, France, Netherlans, UK, Spain. Similarly, we can conclude that Japan has made significant donations in eastern Asia. Australia - a country that is located south of Indonesia, bordered by the Pacific Ocean and Indian Ocean has also donated aid.

Developing Countries in Asia and South America like, India, Bangladesh, Brazil, Argentina recieve most of the aid. In the north American region, USA donates the maximum aid. Similarly we see that western european nations donate more while the eastern europen nations receive more. In the Asian side of the globe, Japan donates the highest Aid whereas India, Bangladesh ,etc recieve aid. Uopn, analyzing the data we can conclude that middle eastern countries like Saudi Arabia, UAE, Kuwait give more aid while countries like Russia recieve aid.

View Notebook : Click Here

Graph Design: TIME

Visualization 1:

Question: a) How does the amount donated vs. amount received change over time for each country?
b) Are there countries that mostly send or mostly receive and countries that have a similar amount of donations they receive and send?
c) Are there countries that change their role over time? That is, they used to mostly send donations and turn into mostly receiving donations and vice-versa?
d) Are there countries in which you can find a sudden increase ("peak") or a sudden decrease ("valley")?

View Notebook : Click Here

INFERENCE : In order to answer this question, I have used a heat map with a diverging scale. Note that, the scale uses multiple colors across the spectrum. This helps us get a vivid idea by mapping the respective color. Therefore, by using a diverging color scale with multiple colors, we are able to depict how the donated and received amount varies with time across the different countries.

We are creating a scale ranging from low to high differences in millions of dollars and use this value to determine the color of the cell in the heatmap. Through this heatmap, we are analyzing data from the years 1973 to 2009. A heatmap will help us view the data of multiple countries at the same time. This form of representation will help us compare countries easily and also understand the pattern changes of each country over time. A color scale with multiple colors helps us in understanding these patterns better.

Furthermore, using a heatmap with a common color scale, helps us study the patterns for different countries at the same time. Using a heatmap would be more helpful to compare countries, rather than generating a seperate graph for each country. Furthermore, from the graph we can observe that countries that have provided more donations are in the bottom of the heatmap,while countries which recieve more donations are placed on the top. Ordering the countries in this way, will help us group and demarcate the countries in a better way.

From the heatmap, one can easily infer that countries like India, Thailand and Brazil mostly recieve while on the other hand, countries like Germany and United States mostly donate. We can also conclude that countries like Spain, Korea, Norway, etc which used to receive donations in the earlier years (before 2000s) but have now started giving more donations in 2000s.

This form of represenatation can also help us determine, the lows and highs. In other words, we can determine - which year what country donated the maximum amount (in the given time frame) or which country recieved the maximum amount in a given year. A lot of examples can be seen of the peaks and valleys in the graph. For example, we see that Spain's donations peak around 2006 - 2010. We see a valley for Kuwait in 1992. We see a valley for Australia in 2001. We can also see a valley for Ireland in 2002. So many such examples can be provided of peaks and valleys.

Visualization 2:

Question:

View Notebook : Click Here

INFERENCE : Here I have used a line chart to show how the top 10 purposes of disburements vary over time. Each line is color coded and represents a purpose of disburement.This graph provides easy way to see the variations in each of the purposes as well as compare them amongst each other. By using this form of representation, we can compare the top 10 purposes of disburements with their variations in amounts over time. This graph provides easy way to see the variations in each of the purposes as well as compare them amongst each other. We see that RESCHEDULING AND REFINANCING has higher amount than other purposes.

We can see an increasing trend in Mineral/Metal prospection and exploration purpose and the Telecommunications purpose. These purposes have have more amount in the 2000s. We see that RESCHEDULING AND REFINANCING has an increasing trend during the 90s but starts decreasing during 2000s. Similarly, Power generation/renewable sources has an increasing trend during the early 2000s but starts decreasing post 2005.We also see sudden peaks and valleys. RESCHEDULING AND REFINANCING had peaks in early 1990s and Power generation/renewable sources had peaks post 1990s. We also see sudden peaks and valleys in the graphs of Mineral/Metal prospection and exploration.

Graph Design: NETWORKS

Visualization 1:

Question: Create an overview of the relationships between countries so that it is possible to see who donates to whom and how much. The main question one should be able to answer is: who are the major donors and to which countries do they donate the most and how much? And conversely, who are the major receivers and which countries do they receive from the most and how much? (we only care about the top 10 recipients and the top 20 donors)

INFERENCE : I have used a heatmap to represent the amount donated between countries. Note that, we are considering the top 20 donors and top 10 recipients. We are representing the top 20 donor nations on the Y axis and the top 10 recipient nations on the X axis. Note that I am using a red diverging scale to represent the amount donated. A darker shade of red represents a higher amount donated and a lighter shade of red represents a lower amount donated. Also note that the heatmap is sorted in terms of donated amount and recieved amount. This means that the top donors are represented on the topmost part of Y axis and the top recieveing countries are represented on the leftmost part of X axis.

We can make many inferences: for example, Japan makes the most donations to India. India also recieves donations from USA, Germany and UK. Germany makes significant donations to Poland and India. We can also infer about the recieveing nations. For example, Brazil recieves most of donations from USA and Japan. However, Brazil also recieves donations from Germany and France. Thailand on the other hand recieves most of its donations from Japan.

Therefore, amoung the top 20 donor nations - we can conclude that United States, Japan, Germany and United Kingdom make significant donations. USA and Japan combined donate aid greater than $30,000,000,000. Furthermore, amoung the top 10 donor nations - India and Thailand are 2 nations that recieve a lot of aid. Other nations like Brazil, Columbia and Korea also recieve aid - but not as much as India and Thailand.

Hence, the major recievers are India and Thailand. India recieves a combined aid greater than $40,000,000,000 from USA, Japan, Germany and UK.

View Notebook : Click Here

Visualization 2:

Question: Considering only the top 5 purposes of donation, how does the relationship between countries look like in terms of purposes? What composition (distribution) of purposes do the donations between each pair of countries have? Are there countries that donate to a given country using multiple purposes? Or do counties always donate using one single purpose when donating to another country? (we only care about the top 10 recipients and the top 20 donors)

INFERENCE : For this particular visualization, I have used a colored pie chart. I have used 5 different vibrant colors that can be viewed easily on the black background. Each of these five colors represent the top 5 purposes. The top 5 purposes are - Air Transport, Rail Transport, Industrial Development, Power generation/non-renewable sources and Rescheduling and refinancing. The pie chart for each country is color coded and divided. These divisions and color codes represent the amount for the particular purpose. The divisions within the pie chart represent the proportion of the particular purpose that is encoded by a color. The radius of the pie charts range from 14 to 28 units. This is because, the size of the pie chart represents total amount donated for the top 5 purposes, by a particular nation. As per the requirement, we are considering the top 20 donors that are represented on the Y axis. Furthermore, we are considering the top 10 recipients - which are represented on the X axes (top and bottom).

From this form of representation, we can clearlt infer how the major donors make their donations among the different purposes. We see that United States makes major donations for Industrial Development, Power generation/non-renewable sources and Air Transport. We can also conclude that USA makes most major donations in Air Tranport (except to Kuwait). Likewise Japan donates a major portion to Rail Transport. We see Sweden, Norway and Canada donating in small portions for Industrial Development.

Additionally, we can also make inferences about the reciepient nations. For example, we can conclude that Poland recieves major donations from Germany and Belgium for Rescheduling and refinancing.On the other hand we see South Africa, Chile and Brazil receiving a high portion of donations for Industrial Development. Power generation/non-renewable sources aid goes mainly to India, Thailand and Colombia. Air Transport Aid (except for Kuwait) and aid for Industrial Development seems to be evenly distributed among the top 10 recipient nations.

View Notebook : Click Here