Skip to content

2015 data visualization project trying to visualize relationships among U.S. legislators in voting patterns.

License

Notifications You must be signed in to change notification settings

ntguardian/dataviscourse-pr-congressrelations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PoliVis: Congressional Political Relationships

By Curtis Miller and Jignesh Rawal

Map Image

Code

We started from an HTML5 Boilerplate template. Most code for the website is in the src directory. Our own code is included in:

* index.html
* src/congress.js
* src/main.js
* src/mapVis.js
* src/scatterVis.js
* data/Senate114Metadata.json
* data/SenateRecord114.json
* css/main.css
* raw_data/CS6630ReadData-12-2-15.r (not actually used by the vis, but used for data preprocessing)

The rest, save for map_test.html and scatterplot_test.html and the favicon, are provided by HTML5 Boilerplate. Raw CSV files containing the data processed by CS6630ReadData-12-2-15.r are included in the raw_data folder. Gulpjs is used to lint, transpile, and copy all source code from the src folder and stores it in the dist folder.

Installation

cd /path/to/apacheServer #Usually /var/www/html in Linux/Unix 
git clone https://github.com/ntguardian/dataviscourse-pr-congressrelations
npm install #Install nodejs or npm to install dependencies.
npm build #R required for data preprocessing

Process Book

See CS6630ProjectNotebook.pdf for the process book.

Live Demo

You can find the live website here.

Usage

A Youtube demonstration is available here.

Scatterplot

Scatterplot The scatterplot shows Senate representatives for each state. Democrats are colored blue, Republicans are red, and other parties are colored yellow. On the X axis each senator is placed by their Ideology. The range starts with most liberal, and ends with most conservative. The Y axis shows how often the selected senator or senators voted with each other senator.

Map

Map The map allow a user to select the senators of that state, and adjusts the scatterplot according to the selected state.

Selection Tool

Selection tool The selection tool allows users to search for senators, clear the current selection, toggles whether selecting a senator adds to the current selection, or overrides the current selection.

About

2015 data visualization project trying to visualize relationships among U.S. legislators in voting patterns.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published