Skip to content

This site presented 2020 election data using a heat map of the United States with state and county level winner information.

Notifications You must be signed in to change notification settings

Niraj-Khatri/Election2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Election 2020 Results

I used election 2020 data to create a website that was served that data and generated graphs. The data was collected from Kaggle.com (https://www.kaggle.com/unanimad/us-election-2020) and the files used were: president_county.csv, president_county_candidate.csv, and president_state.csv.

image


I set up a backend server using MongoDB (create_mongodb.ipynb). I used Python to calculate the election percentages by state and by county and Flask to serve the data to a local server.

image


Finally, I used JavaScript, D3, and Geojson information to create a dynnamic map the United States based on candidate win percentage at the state and county level. image

(When a state is clicked on. In the example below, Georgia was clicked.) image

About

This site presented 2020 election data using a heat map of the United States with state and county level winner information.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published