Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for Exercise 1 #106

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Electoral Candidate Information

This project uses an API from the Huffington Post that provides polling information for primaries, elections, and various topics.
The focus on the project is on both the Democratic and Republican candidates for the 2016 Presedential election.

The documentation for the API is available here:

http://elections.huffingtonpost.com/pollster/api

When the application loads, it retrieves a list of the GOP candidates and uses a data
visualization library called D3.js to plot a bar graph of each candidate’s standing in the polls.

Jquery and its documentation can be found here:
https://jquery.com/

D3.js is avaialable from:
http://d3js.org/
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<script>

var url = "http://elections.huffingtonpost.com/pollster/api/charts/2016-national-gop-primary";
var url = "http://elections.huffingtonpost.com/pollster/api/charts/2016-president";

$.ajax(url, {
dataType: "jsonp",
Expand Down Expand Up @@ -41,4 +41,4 @@
});
</script>
</body>
</html>
</html>