Skip to content

A small visualization to see how stupid the Electoral College is

Notifications You must be signed in to change notification settings

jmamos/RedrawStates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redrawing the States

This visualization was an attempt by me to:

  1. Understand d3 (one day I should really learn it. :) ), and
  2. More importantly, to understand just how janky the electoral college is.

Using this visualization, you can move counties to other states. Currently it's a bit difficult to use, but what I found, basically, is that

  • If you move the three westernmost counties of the Florida panhandle to Alabama, Florida flips to Clinton,
  • If you move the 10 closest counties of the Upper Peninsula of Michigan to Wisconsin, Michigan flips to Clinton,
  • If you move the three closest counties of California to Arizona, Arizona flips to Clinton,
  • If you move Cook County from Illinois to Indiana, Indiana flips to Clinton (and gains 7 electoral votes), and Illinois flips to Trump (and loses 7 electoral votes),
  • If you move Lake County (just above Chicago) to Wisconsin and those 10 counties of the UP to Wisconsin, Clinton wins Illinois, Wisconsin, and Michigan,
  • If Camden joined Pennsylvania, Clinton wins both Pennsylvania and New Jersey (and no electoral votes change hands),

In total, if only 8 counties move (3 from CA -> AZ, Camden -> PA, Lake -> WI, 3 from FL -> AL), Clinton wins 301 to 237.

Usage

If you want to try to make sense of the current draft product, then just run

> node server.js

and then point your browser to localhost:8080/map.html. Or, if you want, go here for the latest live version.

Acknowledgements

I ganked a lot of stuff from the interwebs to make this. Here is a list:

License

GPL v3

About

A small visualization to see how stupid the Electoral College is

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 39.9%
  • JavaScript 28.5%
  • CSS 11.9%
  • HTML 9.4%
  • Python 8.4%
  • Makefile 1.9%