Code Monkey home page Code Monkey logo

global-terrorism-visualization's Introduction

Global Terrorism Visualization

➡️ RUN THE DEMO HERE ⬅️

Screenshot

Running Instructions

Access our visualization HERE.

OR download this repository and run python -m SimpleHTTPServer 9000 at the root. Then access the visualization from http://localhost:9000/ using your favorite web browser.

The Dataset

The visualization depends upon dataset acquired from Global Terrorism Database (GTD, University of Maryland).

It is currently the most comprehensive unclassified data base on over 113,000 terrorist events, occurred between 1970 and 2012 in the world.

Each event consists information on the date, location, number of people killed and injured, weapons used, intention, group or individual involved, target, summary, cites, etc.

The dataset was cleaned before being directly used. Many required values were null or inconsistent. For example, some of the 3 Letter country codes from the database were not matching to that in the Datamap object.

Visualization Contributors

Chaoyu Yang

  • Ruby code for data cleaning
  • Implementation of Brushed time scale
  • on Brushed event
  • Individual Country visualization
  • Page styles
  • Responsive view
  • World Map Optimization

Aniket Handa

  • Dataset Exploration
  • World Map implementation and brush integration
  • Country selection
  • Colors

##Dependencies

##Interactions

The Visualization focuses on discovering important trends and events that shaped the history due to Terrorism. It also tries to make user conscious about the number of unnecessary lives lost due to these unfortunate events.

We try to accomplish this by showing multiple views of the large dataset -

  • The Global Map view - Shows the world map with color encoded countries according to number of killings over the selected period of time.
  • Country Wise view - Shows circle graphs over the selected period of time.
  • Brushing tool - Shows a bar graph of total killings in every month.

The purpose of all these three views is different. The Map view shows the high level effect on countries due to terrorism, whereas the Country wise view concentrates on comparison, ordering, discovering trends of events between two or more countries, and also it facilitates finding the event which caused the mishap. While these two views focus over a period of time, the Brushing tool helps constantly see the visualization over the full period. It also helps in controlling the other two views.

The visualization features basically three interaction techniques:

1. Brush:

To brush and link multiple views we use a timeline as a background, which starts from first day of Jan, 2000 to Jan, 2011. It supports

  • Expansion of the current selection in either direction,
  • Dragging of the span over the timeline, and
  • Clicking outside the span selects that particular month.

2. Select:

To afford comparison and trend discovery between event happenings in two or more countries users can select countries by clicking them on the world map. This adds the country to the country wise view of the visualization.

3. Hover:

Details on demand - Hovering over a country in the World Map reveals the total number of killings in that country over the period. Also, hovering over a data point in the country wise view reveals more information about the event w.r.t. to the data point.

Design Process

We started off with data search and found many datasets which called our attention. But before finalizing on one we briefly explored all of them using Tableau. ####Exploration

  • World Map representing countries with more killings (nkill) by more red. Sheet 7

  • A time stream representing the trend Sheet 5

  • Heat Map of all countries w.r.t. to time, colored according to number of killings. Sheet 4

  • Bubble Chart Sheet 1

While exploring these charts using Tableau we also simulated them using pages year wise to evaluate various interactions possible.

####Sketching

  • During Brainstorm
    S1

  • Final sketch before we started coding S2

The top portion is a timeline wherein one can select the months from 2000 to 2010. It is used to brush below two visualizations. It affords all the interactions mentioned above.

Changes between Storyboard and the Final Implementation

There are not any significant changes between the final sketch and the final implementation. Though there were some stubble changes in placement of various elements, the colors, the scale used. But, the overall interaction, views and underlining objective remained the same.

  • Its hard to sketch colors and exactly understand how they will be perceived without an actual running prototype. We didn't consider the use of log scale for color encoding, until we saw the running visualization.
  • We first envisioned the country wise visualization to be similar to time stream from Tableau (above), but we ended up plotting translucent circles with size dependent upon killings to represent each event.

global-terrorism-visualization's People

Contributors

atneik avatar kanitw avatar parano avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.