From b892e13ec09f120203d4e1246bba25a3498dd2ba Mon Sep 17 00:00:00 2001 From: tds7xb Date: Thu, 28 Jan 2016 20:25:36 -0600 Subject: [PATCH 1/2] Created README used markdown format to create a readme with a project name, description, and links to tools used --- README.md.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 README.md.txt diff --git a/README.md.txt b/README.md.txt new file mode 100644 index 0000000..8658e00 --- /dev/null +++ b/README.md.txt @@ -0,0 +1,11 @@ +#MizzouSEG + +##Description + +This project uses an API form the Huffington Post that provides polling information for primaries, elections, and various topics. this project has the polling numbers in bar graph form for the Republican and Democratic parties. This is my fork for the first exercise for the software engineering course at Mizzou where I added the Democratic party + +##Links to tools used + +[jQuery](https://jquery.com) +[D3.js](http://d3js.org) +[Huffington Post API](http://elections.huffingtonpost.com/pollster/api) \ No newline at end of file From 253b46218db951050696c28536072c3354da2211 Mon Sep 17 00:00:00 2001 From: tds7xb Date: Thu, 28 Jan 2016 20:28:09 -0600 Subject: [PATCH 2/2] Added Democratic Primaries graph Added a Democratic Primaries graph with the already existing Republican one. added headers to separate the two graph and changed the CSS to have the polls be their parties colors --- app.css | 18 +++++++++++++++++- index.html | 35 +++++++++++++++++++++++++++++++++-- 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/app.css b/app.css index 17f5189..1a6bc49 100644 --- a/app.css +++ b/app.css @@ -12,7 +12,23 @@ body { #graph .bar { width: 0; height: 35px; - background-color: coral; + background-color: red; + margin: 5px; + float: left; +} + +#graph2 .choice { + float: left; + font-family: arial; + font-size: 1.5em; + min-width: 200px; + text-align: right; + margin: 8px 5px; +} +#graph2 .bar { + width: 0; + height: 35px; + background-color: royalblue; margin: 5px; float: left; } diff --git a/index.html b/index.html index 39c1d51..43d9df6 100644 --- a/index.html +++ b/index.html @@ -7,13 +7,15 @@ - +

Republican Candidates

+

Democratic Candidates

+
\ No newline at end of file