Election Map Implementation
Finding: We can draw conclusions from the Presidential map: the same few swing states usually decide the election, the country is getting more polarized, and there is evidence of a partisan realignment. New England states used to be reliably Republican, but since 1992 they have been reliably Democratic. In the 1990s a Southern Democrat like Bill Clinton was able to win Southern states, but they are now uniformly Republican, and have gotten more and more Republican leaning over time.
The country has become more polarized politically, and there are fewer states where the margin of victory is small. This means that fewer states swing between parties from one election to the next, and the states that do swing have disproportionate impact on the election
Visualization Writeup
- Encoding: In general, the red color represents Republic party and blue presents Democrat party. The color is represents the margin of victory, deeper color presents higer margin. You could easily find out swing states where the margin of victory was less than 5%(close to grey).
- Interactivity:
- Hovering And Tooltips:
- When hover a state, a tootlip shows information on the winning candidate, the margin of victory, and the number of electoral votes. Also, when you hover a specify state, the stroke of state will raise and the opacity will become lower.
- Clicking And Filter:
- When click a state, a time-series bar graph will show up on your right hand site, which you clearly see how this state change their seat over year.
- There have two button the left hand side. Upclick the button and downclick the button to change the choropleth election map of selected year.
- Hovering And Tooltips:
- Wrangling: Filtering the dataset and then python to combine data from different years.
US Electional Map(1984 to 2016)
2016 President Election Result
State: Florida(FL)