Skip to content

EitanJoseph/D3-Development-IS

Repository files navigation

US Presidential Election Data

Running:

Type "py -m http.server" Open a browser and type "localhost:8000"

Features:

Version 1

Selection of year (1976-2016 in 4 year intervals) using slider Selection of year will cause states to turn blue/red/etc. based on presidential winner Hovering over state shows the state's name and breakdown of the election

Version 2

All features of Version 1 are preserved in addition to: Clicking on a state will reveal each state's voting similarity to other states

Future:

Have drop down menus for each political party to show info over the 1976-2016 time period

Resources:

jQuery: https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js d3: https://d3js.org/d3.v4.min.js US states geo JSON: https://raw.githubusercontent.com/shawnbot/topogram/master/data/us-states.geojson US 1976-2016 Presidential election data: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/42MVDX

About

Preliminary D3.js Showcase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published