Giter Site home page Giter Site logo

jacksonjude / usa-election-map Goto Github PK

View Code? Open in Web Editor NEW
21.0 6.0 18.0 48.17 MB

An interactive presidential, senatorial, house, and governor election map for future projections and past results. Written in HTML/CSS/JS

Home Page: https://map.jacksonjude.com

HTML 5.52% JavaScript 92.14% CSS 2.34% PHP 0.01%
usa election election-data 2020 fivethirtyeight presidential-elections senate-elections historical-data javascript history

usa-election-map's People

Contributors

fish1 avatar jacksonjude avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

usa-election-map's Issues

2022 Predictions

  • Add predictions from Sabato's Crystal Ball for 2022 Senate & Governor races
  • Add preditions from FiveThirtyEight for 2022 Senate, Governor, & House races

Flip states for projections and past elections

  • Show regions that flipped since last election/last projection (with diagonal stripe pattern?)
  • MapSource function to determine last election (more complicated for senate past, but simple for most others)
  • Add setting to toggle show/hide

Add the US Senate Map as well.

Hey!
Potential Feature! The US Senate Map can be added and the past US Senate elections also.
The Map can be sourced from YAPMS and if you need the data, just tag me and I'll get it to you.

Add the U.S. Gubernatorial Elections

I have an idea about another map, in this case the U.S. Gubernatorial Elections, It would be very interesting to see the margins by state in their respective gubernatorial elections and it would also be a very useful tool for the analysis of gubernatorial elections. Currently a map for it exists in YAPms but it would also be interesting to see from territories that hold gubernatorial elections or similars (like mayoral race in DC), that's an extension to the first but if added would be awesome, just like any other map it would have current and past elections. Thank you.

Custom map selector

  • Select a map svg from all available svgs, to be saved in json custom map data
  • Have map type auto-switch on json upload

County editing

  • Edit option for counties in dropdown (always voteshare?)
  • Use county results for total state margins

Shift and compare support for third parties

  • Rework shifting to take votes from other parties proportionally to their voteshare; only enable this functionality when voteshares are enabled for the custom map (see #31)
  • Update NPV and Tipping Point shifts to work the same way
  • Rework compare mode to show all shifts for top parties (with some cutoff, maybe 5%)

Presidential County Maps

Hello, I use this app quite a bit and I love it! However, would it be possible to add a county map? Whether it would on its own map or same map but click on the map. Thanks!

Option to change electoral votes by state

There's a few articles put forward showing an expansion of the house would lead to more proportional representation. It would be an interesting feature to see what California would look like with over 100 electoral votes with proportional representation in every other state as well.

House map

A house of representatives map:

  • Will initially show 50 states, probably colored by which party controls the most seats in them (or split in some way to represent the percentage of seats for each party)
  • Hovering over a state in this initial view will show how many seats each party controls (and possibly the popular vote totals for that state?)
  • Clicking on a state will zoom to reveal the individual congressional districts in the state, similar to the NYT presidential map's method of showing counties
  • Hovering over a district will show margin and voteshare like every other map source

1976-1998 House Maps

  • Convert shapefiles to SVGs
  • Size correctly & add metadata
  • Insert Alaska & Hawaii in correct locations

Specific margin shifting

  • Custom shift value w/ similar usage to margin boxes
  • Fix selected party box visual glitch when shifting

(suggestion) Add Direct Vote Amounts for Each State

For example, instead of adding in vote share percentages for a state, instead be able to insert the number of votes and have the percentages be calculated based on those direct numbers. As such, there would be information on how many people live in the state and multiply that by the fifteen percent average voting rate for how many voters would be expected.
This would be additional to the "set margin" and "set vote share" editing options.

Voteshares in custom maps

Main Features

  • Use voteshares in custom maps
  • Add voteshare editing in custom maps
  • Create percentage if a party that does not already exist in the voteshare is selected
  • Remove percentages by setting to zero voteshare
  • Setting for default copy mode, place other mode in Copy/Edit dropdown
  • Use voteshares in compare & shift modes
  • Testing for all types

Possible features

  • Add "flatten" button to convert voteshare custom map to margin custom map
  • Add other method to use original margin editor while preserving voteshare (could replace settings dropdown w/ editing settings while editing)

*SUGGESTION* Option for the Territories for Custom maps.

If custom maps are generally considered to be user-defined hypothetical scenarios,
using the YAPMS territories template,

image

users would be able to make hypothetical maps if American Samoa, Guam, Mariana Islands, Virgin Islands and Puerto Rico were able to vote in Presidential elections.

I am unable to create any working maps past 2030.

Hi, ive been working on something using the custom source feature, and ive been trying to do it for elections in 2032, however it will not show anything. I was just wondering if you were planning on changing it, or will change this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.