Best Flask open-source libraries and packages

Election2020

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

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

Tags d3