From 5ab5a599468d57884657f6b87f1a3fcd6756c11a Mon Sep 17 00:00:00 2001 From: David Schneider Date: Tue, 26 Jan 2016 19:28:43 -0800 Subject: [PATCH 1/2] Added Readme file --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e3456d1 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# MizzouSEG + + +## Project Description + +This project utalizes a Huffington Post API to gather polling information for elections and other various topics. It then takes the informaion and visulizes it using the D3.js javascript library. + +### Links to Resources + +* [jQuery](https://jquery.com/) +* [D3](http://d3js.org/) +* [Huffington Post API](http://elections.huffingtonpost.com/pollster/api/) + + + + + + + + + + From 89af89e6b96d2b71e239cc5ed0af3e7b338a3228 Mon Sep 17 00:00:00 2001 From: David Schneider Date: Thu, 28 Jan 2016 18:55:47 -0800 Subject: [PATCH 2/2] Added Democrats --- app.css | 26 ++++++++++++++++++++++--- index.html | 57 +++++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 75 insertions(+), 8 deletions(-) diff --git a/app.css b/app.css index 17f5189..72e1fb7 100644 --- a/app.css +++ b/app.css @@ -1,7 +1,8 @@ body { background-color: #EEE; } -#graph .choice { + +#gopGraph .choice { float: left; font-family: arial; font-size: 1.5em; @@ -9,15 +10,34 @@ body { text-align: right; margin: 8px 5px; } -#graph .bar { + +#gopGraph .bar { width: 0; height: 35px; background-color: coral; margin: 5px; float: left; } + +#demGraph .choice { + float: left; + font-family: arial; + font-size: 1.5em; + min-width: 200px; + text-align: right; + margin: 8px 5px; +} + +#demGraph .bar { + width: 0; + height: 35px; + background-color: cornflowerblue; + margin: 5px; + float: left; +} + .group:after { content: ""; display: table; clear: both; -} \ No newline at end of file +} diff --git a/index.html b/index.html index 39c1d51..458fdb0 100644 --- a/index.html +++ b/index.html @@ -8,19 +8,63 @@ -
+ +

GOP Polls

+
+ +
+ +

Democratic Polls

+
- \ No newline at end of file +