Skip to content

CSE512-16S/a3-janetmatsen-mdmurbach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a3-janetmatsen-mdmurbach

===============

Team Members

  1. Matt Murbach (mdmurbach)
  2. JanetMatsen (janetmatsen)

World Bank Climat Data Visualization

This interactive plot includes the multidimensional data from the World Bank's Climate data. The data includes yearly information for a range of environmental economic and developmental metrics. You can explore trends between variables by using drop-down menus to select the x and y axis variables. Hover over any point and to see which country corresponts to the selected point.

Running Instructions

Access our visualization at http://cse512-16s.github.io/a3-janetmatsen-mdmurbach/.

Story Board

The World Bank Climate Data set was appealing to Janet and Matt because of common interest in environmental and socioeconomic issues, and the fact that it was so high-dimensional.
The data set consists of yearly data for dozens of measurable environmental and socail variables. Janet was having fun exploring the data in Pandas, but was frustrated that she could only generate single plots at a time.
For example:

Janet was particularly interested in which countries had especially high and low greenhouse gas emissions per amount of energy used. Matt was particularly interested in seing how these types of data changed over time. Thus, we came up with the idea to make a visualization that allowed exploration of both of our main questions and many others.

While many of the pairs of variables had trends that made sense, nearly every pair of x and y axis variables had outliers that would be fun to identiy. This motivated us to create a tooltip that showed which country was represented by the data point being hovered over. She also wished she could identify which coutntries were outliers in these preliminary graphics.

The first layout of the visualization was sketched out...

The dropdown menus would allow the user to update the data shown while a transition between the plots would allow the user to follow specific countries of interest as the data changed. We also wanted to have a tooltip that showed up when the user mouses over a dot. This tooltip would show the country name...

We had many ideas of features that could be added on to the basic scatter plot should time allow. For example, perhaps you could query a list of particular countries by similarly to the Baby Name Voyager or have the time series of each country's x and y values shown in adjacent plots. Zooming could also allow you to focus on areas with many points. An adjacent plot could show trends over time for the particular country.

Getting the current graphic up precluded addition of extra components. One of the largest time sinks was compensating for the sparseness of the data. In this data set, values are not reported consistently across time or countries. To prevent the dissappointing user experience of having all the scatter points disappear upon click of an invalid variable, extra time was spent to refresh the x-axis and y-axis dropdown menu options given the particular year selected.

Changes between Storyboard and the Final Implementation

As the map started to come together, we realized that mapping region to color would allow visualization of whether some regions of the world had similar trends or changed together over time. To add this we added the country region to the dataset, changed the fill color of the circles, and added a legend.

Development Process

Work distribution between members:

  • Initial static scatter plot (Matt and Janet)
  • Add x/y dropdown menu and color by region (Matt)
  • Added year option: (Janet)
    • Reformatted code (in Python) and used two d3 nest commands to allow access to data by year and country
  • Added functions that filter out x/y variable options with no values given the selected year. (Janet)
  • Integration with GitHub pages (Matt)

Time Investiment and Challenges

Neither Janet nor Matt had any experience with D3 or web programming in general.
In addition to each spending 20+ hours becoming familiar with fundamentals of D3 and javascript, each member spent 20+ hours actively coding for this visualization. In addition to reading all of the suggested materials in class, video tutorials were key for Janet. The ability to decode errors took more time than expected as well.

The amount of time acively coding (exclusing studying of fundamentals) was about 20 hours for each team member.

  • Matt ~ 20ish hrs
  • Janet: 28 hours
    • ~10 getting the basic scatter plot up (single X, Y pair, no dropdowns, no coloration). (This could be re-done in 2 hours with our updated understanding!)
    • ~10 understanding Matt's addition of dropdowns and use of d3.nest to doubly-nest the data (by year then country) and add a third dropdown for the year
    • ~8 hours writing javascript functions that count the number of non-null instance for each x/y option given the year. The x and y dropdowns are deleted and added back using appropriate x/y options each time a new year is added.