hz97 / sds192-mp2 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from beanumber/sds192-mp2
Mini-project 2
This project forked from beanumber/sds192-mp2
Mini-project 2
In addition, is it necessary to mark the district in the contribution graph?
We were interested in swing states -> Using the ratio of total general votes for Democrats vs Republican to find out the top 10 swing states
We were wondering if all the districts in these swing states were swing districts: if the general votes for Democrats vs Republican in each district in these swing states were also tied -> 10 graphs plotting general votes distribution (the percentage of general votes each party got) in each district of the top 10 swing states
We were wondering how contribution is related to elections in swing states -> we first looked at the total contribution related to candidates of the most closely tied/most democrat-advantaged/the most republican-advantaged district in each swing state (3 graphs) -> then we looked at the individual contribution advocating/opposing those aforementioned candidates (6 graphs)
Baseline
Average
Advanced
The data being exhibited shows the voter polls by party in the various districts of the ten key swing states -or in simpler terms the total of the public's general votes for Democrats and Republicans-- as well as the campaign contributions of the different parties in said states. To show the difference between parties, Republicans were represented in red, Democrats with blue, and other parties with green. It was unclear to us whether or not all districts in a state were swing districts, and if the general polling per district between Democrats and Republicans were tied. Ten separate graphs for the ten different swing states were created to find out this very question. According to our mapped results, the closest state in terms of voter polls was New Hampshire, with its only two districts polling nearly equally, while states with more districts varied on average on which party was being voted for.
In addition to the inquiries concerning voter preference, another question that was raised during this project was how contribution was related to the swaying of an election in swing states, and how certain parties donating may have an effect of donating. We first looked at the total contribution of advocating or opposing candidates most closely affiliated with a certain party's dominant control over the district in each swing state. After this, we looked at the individual donations and campaigning for candidates of each party. What we found most interesting was the amount of money that was being funneled into campaigns in the state of New Hampshire. New Hampshire has only two districts that can result in a close call come election time, so politicians find it imperative to sway voters as much as possible. In all our graphs, the results indicated that there was always money being funneled in to campaigning in New Hampshire in every field, as opposed to some states where money was not funneled in certain areas, and that usually donations are in the millions. What we can learn from this data is that the millions of dollars donated by various sponsors of candidates can be incredibly influential in swaying an election into one's favor, especially in swing states. Wrangling and presenting the data can really showcase the magnitude of this problem and start a conversation about the state of politics in this country.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.