New electoral vote calculator
       |           

Welcome, Guest. Please login or register.
Did you miss your activation email?
April 26, 2024, 03:28:57 PM
News: Election Simulator 2.0 Released. Senate/Gubernatorial maps, proportional electoral votes, and more - Read more

  Talk Elections
  Forum Community
  Forum Community (Moderators: The Dowager Mod, YE, KoopaDaQuick 🇵🇸)
  New electoral vote calculator
« previous next »
Pages: 1 2 [3] 4 5 6 7 8
Author Topic: New electoral vote calculator  (Read 43863 times)
jimrtex
Atlas Icon
*****
Posts: 11,828
Marshall Islands


Show only this user's posts in this thread
« Reply #50 on: November 27, 2020, 12:18:15 PM »

So it looks like there currently is a kludge for Jim's desire to have nothing showup in certain States.

I'm working on some ideas for showing text instead of EVs, but it's less thorough than I like. For example I can interpret the EV value in the region array by type, and use it as an EV if it's an integer, and use it as a text label if it's a string. My hangup is that it's totally not the way I'd do this if I were including that feature from the start. The way I would normally do it is to allow BOTH evs and label text, so the EVs would at least show up in the EVBar and tooltips. I probably should have made the region entry an object, not an array, so I could structure it better.

I'll continue mulling it over.
I'd be content with this. I'd prefer to be able to able to leave the first value null. Currently this won't display anything.

Is there a way to turn off the tool tips?
Logged
Virginiá
Virginia
Administratrix
Atlas Icon
*****
Posts: 18,892
Ukraine


Political Matrix
E: -6.97, S: -5.91

WWW Show only this user's posts in this thread
« Reply #51 on: November 27, 2020, 12:32:14 PM »

Is there a way to turn off the tool tips?

Yes, an undocumented option:

"useTooltips":false

Add it into the options:{} object, like the other options (if you don't insert it correctly, map will likely error instead of displaying).
Logged
🐒Gods of Prosperity🔱🐲💸
shua
Atlas Star
*****
Posts: 25,691
Nepal


Political Matrix
E: 1.29, S: -0.70

WWW Show only this user's posts in this thread
« Reply #52 on: November 27, 2020, 12:55:21 PM »

Nice work. 

Can we get options & shades for less than 30% ?
Logged
jimrtex
Atlas Icon
*****
Posts: 11,828
Marshall Islands


Show only this user's posts in this thread
« Reply #53 on: November 27, 2020, 03:37:21 PM »

Is there a way to turn off the tool tips?

Yes, an undocumented option:

"useTooltips":false

Add it into the options:{} object, like the other options (if you don't insert it correctly, map will likely error instead of displaying).
Thanks.

I think I would follow better if the the legend MA was always visible (black) and if I run the cursor across either the state or the box, both the state outline and box outline were highlighted. I think most people know where Massachusetts is and what it looks like. But now you have to translate in your mind that corresponds to MA and that the box next to it is the electoral vote.
Logged
ultraviolet
Jr. Member
***
Posts: 1,961
United States


Political Matrix
E: 0.71, S: -3.22

P P P
Show only this user's posts in this thread
« Reply #54 on: November 27, 2020, 08:36:49 PM »

Just one thing, I think the colors for Lean are too dark. The tilt colors are more what I imagine for leaning states, and tilt should be even lighter than that

Amazing work!
Logged
pbrower2a
Atlas Star
*****
Posts: 26,859
United States


Show only this user's posts in this thread
« Reply #55 on: November 27, 2020, 09:22:09 PM »
« Edited: November 27, 2020, 10:03:26 PM by pbrower2a »

An attempt to show colors and shades:



Note that any color of "5" or higher gives black at any level of saturation. Nothing brings about white, which I find interesting on overlaps between elections, as in my favorite (Eisenhower against Obama, which seems to suggest that Ike and Obama ended up with similar constituencies)

Colors are done to show the effects of shades.

For my purposes I would make these suggestions:

1. The 'interesting zone' for contests is really between "48" (in three way races) to "55" A distinction between winning 50 and 49 is obvious, but I would figure that any distinction between "50", "51", "52", "53", "54",  and "55"  is significant. A majority (50) always wins, but although "51" could still be razor-thin, "52" indicates at least a 4% difference, which is near the margin of error, "53" indicates at least a 6% difference, which is outside the margin of error, "54" indicates at least an 8% difference about twice the margin of error, and "55" indicates beyond any doubt an election that is not really close. "60" and higher indicate blowouts, and I would find it easier to put "56" and "62" in the same category than "51" and "55". Anything closer to 60 than to 50 is not close.

I would like options for gradations between 50 and 55 such as 50, 52, 54, and 55.

Of course, I always display a legend when I make any deviation from Leip's norm for any reason.

2. I miss yellow, but not orange. "Dark orange" colors were ugly in the old scheme and I did everything possible to avoid using them. "Dark yellow" came off as  tan. Purple is nice to have.

"3" is green and "4" is purple.

3. A grayscale pattern would be of use, as in an election-day scenario.
Logged
Virginiá
Virginia
Administratrix
Atlas Icon
*****
Posts: 18,892
Ukraine


Political Matrix
E: -6.97, S: -5.91

WWW Show only this user's posts in this thread
« Reply #56 on: November 27, 2020, 10:21:57 PM »
« Edited: November 27, 2020, 10:31:34 PM by Virginiá »

Note that any color of "5" or higher gives black at any level of saturation. Nothing brings about white, which I find interesting on overlaps between elections, as in my favorite (Eisenhower against Obama, which seems to suggest that Ike and Obama ended up with similar constituencies)

You're inputting raw data wrong.

The format is:

Code:
"stateID":[electoral_votes, winningPartyID, popular_vote_shade, "status_string", "tooltip_text"]

winningPartyID is based on the candidates:{} entries. 99 is a static ID used for tossup status. Status string can be 'seceded' or 'territory' or 'removed' for now.

Once I finish working on jimrtex's request, there will be 6th array entry at the end for EV label text.
Logged
True Federalist (진정한 연방 주의자)
Ernest
Moderators
Atlas Legend
*****
Posts: 42,156
United States


Show only this user's posts in this thread
« Reply #57 on: November 27, 2020, 11:31:59 PM »

You have some errors in the values for some seceded States in 1864 and 1868.  Based on the apportionment done from the 1860 Census data,

Mississippi should have 7 EV instead of 8 EV.
Texas should have 6 EV instead of 8 EV.
East Virginia should have 10 EV instead of 11 EV. (Without splitting, United Virginia would have had 13 EVs. 3 of Virginia's 11 Representatives were assigned to West Virginia upon the latter's admission.)
Logged
True Federalist (진정한 연방 주의자)
Ernest
Moderators
Atlas Legend
*****
Posts: 42,156
United States


Show only this user's posts in this thread
« Reply #58 on: November 28, 2020, 09:41:49 AM »

The format is:

Code:
"stateID":[electoral_votes, winningPartyID, popular_vote_shade, "status_string", "tooltip_text"]

winningPartyID is based on the candidates:{} entries. 99 is a static ID used for tossup status. Status string can be 'seceded' or 'territory' or 'removed' for now.

Once I finish working on jimrtex's request, there will be 6th array entry at the end for EV label text.

It would be nice if instead of just "r", "b", "g", "y", "p", "gr", and a possible future addition of "o" for orange as some have requested, if there were some method add custom colors for popular_vote_shade.

I know it would likely be a good bit of coding to implement, and details on how to do it would obviously depend upon how the backend handles generating the various intensities of the color shades for particular percentile values. (Based on my experiments, I'm guessing a switch or nested-if structure is currently used to pick from a table of intensities for each decile.) So obviously, if you decide this is even worth considering, any changes you might make to allow for finer gradations of shades as some have requested needs to be done first.
Logged
MillennialModerate
MillennialMAModerate
YaBB God
*****
Posts: 4,016
United States


Show only this user's posts in this thread
« Reply #59 on: November 28, 2020, 10:18:35 AM »

Absolutely LOVE this.

When this site was first started the red Republican blue Democrat was starting to solidify itself but not to the degree it is now. Now you see the marketing and social media accounts of both parties are identified with there colors.

It’s time the state avatars line up with it.

Blue Democrat
Red Republican
Green Progressive
Lime Green Socialist (this one uncertain about)
Yellow Liberterian
Silver Independent
Logged
°Leprechaun
tmcusa2
Junior Chimp
*****
Posts: 8,183
Uruguay


Show only this user's posts in this thread
« Reply #60 on: November 28, 2020, 11:26:53 AM »

I am interested to see the calculator for 2024, which could be coming soon(?)

My impression is that the number of swing states is shrinking every election cycle.

Is it possible (except for the electoral college numbers) the map for 2024 will be identical to the 2020 map?

Here is the most recent projection of the new map of House numbers:

https://www.electoral-vote.com/evp2020/Pres/Maps/Nov26.html#item-9
Logged
True Federalist (진정한 연방 주의자)
Ernest
Moderators
Atlas Legend
*****
Posts: 42,156
United States


Show only this user's posts in this thread
« Reply #61 on: November 28, 2020, 03:56:34 PM »

I am interested to see the calculator for 2024, which could be coming soon(?)

My impression is that the number of swing states is shrinking every election cycle.

Is it possible (except for the electoral college numbers) the map for 2024 will be identical to the 2020 map?

That depends upon what happens with the Douglas Commonwealth and Puerto Rico Statehood proposals. Puerto Rico is the likelier to get bipartisan support, but other than maybe getting the necessary shape file, adding additional States for future years should be fairly easy.
Logged
Anzeigenhauptmeister
Hades
Junior Chimp
*****
Posts: 6,374
Israel


Show only this user's posts in this thread
« Reply #62 on: November 28, 2020, 04:01:32 PM »

As part of an effort to modernize some parts of this forum, I've redone the EV calculator completely. You can check it out here:

I've done extensive testing so far, but there might still be some bugs, so if you notice anything, please let me know.

This will just be the first version of this map generator. I'm already working on expanding to state-level maps and senate prediction maps, and maybe more into the future, a congressional map.

I love the new map generator so much. 🥰
SO MUCH that I don't even dare to make an improvement proposal... 😨
There's one little thing on Dave's maps that is, in my estimation, in need of improvement:
There is no implied geographical significance as to the location of the squares in states with split electoral votes. I wish that would be changed for reasons of clarity and comprehensibility.
Logged
jimrtex
Atlas Icon
*****
Posts: 11,828
Marshall Islands


Show only this user's posts in this thread
« Reply #63 on: November 28, 2020, 05:14:33 PM »

As part of an effort to modernize some parts of this forum, I've redone the EV calculator completely. You can check it out here:

I've done extensive testing so far, but there might still be some bugs, so if you notice anything, please let me know.

This will just be the first version of this map generator. I'm already working on expanding to state-level maps and senate prediction maps, and maybe more into the future, a congressional map.

I love the new map generator so much. 🥰
SO MUCH that I don't even dare to make an improvement proposal... 😨
There's one little thing on Dave's maps that is, in my estimation, in need of improvement:
There is no implied geographical significance as to the location of the squares in states with split electoral votes. I wish that would be changed for reasons of clarity and comprehensibility.
As they say in Aksarben. that's as as easy a 3, 1, 2.
Logged
Anzeigenhauptmeister
Hades
Junior Chimp
*****
Posts: 6,374
Israel


Show only this user's posts in this thread
« Reply #64 on: November 28, 2020, 06:13:28 PM »


As they say in Aksarben. that's as as easy a 3, 1, 2.

I'm truly exalted again and again about how much special knowledge one can acquire by reading through this forum. 🤓

Take into consideration that the same problem occurs in Eniam, too. Tongue
Logged
bagelman
Junior Chimp
*****
Posts: 8,630
United States


Political Matrix
E: -4.90, S: -4.17

P P P
Show only this user's posts in this thread
« Reply #65 on: November 28, 2020, 07:25:35 PM »



Notice something wrong with NE and ME?
Logged
pbrower2a
Atlas Star
*****
Posts: 26,859
United States


Show only this user's posts in this thread
« Reply #66 on: November 28, 2020, 07:57:36 PM »
« Edited: July 02, 2021, 09:02:44 AM by pbrower2a »

Let's see if I can show a flip:




Green represents flips from Trump in 2016 to Biden in 2020.
Logged
Anzeigenhauptmeister
Hades
Junior Chimp
*****
Posts: 6,374
Israel


Show only this user's posts in this thread
« Reply #67 on: November 28, 2020, 08:08:46 PM »



Notice something wrong with NE and ME?

Trump stole the election!
Logged
pbrower2a
Atlas Star
*****
Posts: 26,859
United States


Show only this user's posts in this thread
« Reply #68 on: November 28, 2020, 08:34:21 PM »
« Edited: July 02, 2021, 09:06:45 AM by pbrower2a »

How about a map that allows an overlay of two or more elections?



Eisenhower and Obama twice  -- black
Eisenhower twice, Obama 2008, Romney -- pink
Eisenhower twice, McCain, Romney -- deep blue
Eisenhower once, McCain, Romney -- light green
Stevenson twice, McCain, Romney -- dark green
Stevenson twice, Obama 2008, Romney -- pale blue
not voting in the 1950's, Eisenhower twice -- lavender
not voting in the 1950's, Obama twice -- purple

... Electoral votes are for 2012.
Logged
Wikipedia delenda est
HenryWallaceVP
Sr. Member
****
Posts: 3,242
Show only this user's posts in this thread
« Reply #69 on: November 28, 2020, 09:48:50 PM »

I really don't like this updated design at all. It just doesn't work with the Atlas colors. I feel like the modteam or whomever is making these changes should poll the userbase before making "improvements." The same thing happened when the name and board icons of the site were changed, and when the recommend button was added.
Logged
morgankingsley
Junior Chimp
*****
Posts: 5,018
United States


Show only this user's posts in this thread
« Reply #70 on: November 28, 2020, 11:17:21 PM »

I really don't like this updated design at all. It just doesn't work with the Atlas colors. I feel like the modteam or whomever is making these changes should poll the userbase before making "improvements." The same thing happened when the name and board icons of the site were changed, and when the recommend button was added.

Well I have nothing against the recommend button
Logged
True Federalist (진정한 연방 주의자)
Ernest
Moderators
Atlas Legend
*****
Posts: 42,156
United States


Show only this user's posts in this thread
« Reply #71 on: November 29, 2020, 02:08:08 AM »



Notice something wrong with NE and ME?

It's fixable, either by deleting the CD entries as I did for NE, or adjusting the EV numbers as I did for ME, tho it'd have been simpler to just adjust Maine-at-large to 2 and leave the CDs at 1, tho at-large at 0 and the CDs at 2 works also, since either way the total is 4, tho the two methods affect the EV bar differently unless the same party wins the at-large and all CDs for a State.
Logged
bagelman
Junior Chimp
*****
Posts: 8,630
United States


Political Matrix
E: -4.90, S: -4.17

P P P
Show only this user's posts in this thread
« Reply #72 on: November 29, 2020, 02:13:59 AM »



Notice something wrong with NE and ME?

It's fixable, either by deleting the CD entries as I did for NE, or adjusting the EV numbers as I did for ME, tho it'd have been simpler to just adjust Maine-at-large to 2 and leave the CDs at 1, tho at-large at 0 and the CDs at 2 works also, since either way the total is 4, tho the two methods affect the EV bar differently unless the same party wins the at-large and all CDs for a State.

I'd much rather wait until the bug is fixed. Manually fixed maps would then show as ME 2, NE 3 total while unfixed maps would be fine.
Logged
Alcibiades
YaBB God
*****
Posts: 3,885
United Kingdom


Political Matrix
E: -4.39, S: -6.96

P P
Show only this user's posts in this thread
« Reply #73 on: November 29, 2020, 06:36:16 AM »

I really don't like this updated design at all. It just doesn't work with the Atlas colors. I feel like the modteam or whomever is making these changes should poll the userbase before making "improvements." The same thing happened when the name and board icons of the site were changed, and when the recommend button was added.

I agree. It seems odd that such major changes are suddenly made permanent without any prior consultation.

I know some people think it’s an overdue change, but I think it’s a shame that this new EVC seems to be causing the increasing abandonment of the distinctive Atlas colours for the mainstream media ones.
Logged
Virginiá
Virginia
Administratrix
Atlas Icon
*****
Posts: 18,892
Ukraine


Political Matrix
E: -6.97, S: -5.91

WWW Show only this user's posts in this thread
« Reply #74 on: November 29, 2020, 02:57:23 PM »

I really don't like this updated design at all. It just doesn't work with the Atlas colors. I feel like the modteam or whomever is making these changes should poll the userbase before making "improvements." The same thing happened when the name and board icons of the site were changed, and when the recommend button was added.

I agree. It seems odd that such major changes are suddenly made permanent without any prior consultation.

I did poll the community on recommendations before. It was split. So I eventually went with it. It's a very common forum feature these days, so I don't really get the big deal.

Dave also just released features and took some minor feedback afterwards. I'm unsure why the expectation is changing for things I'm doing. I've also polled the community on other minor changes before, and what I learned was that the vast majority of people here didn't give a crap, so I stopped doing it.

I didn't change the base color designations for the parties, I simply allowed people to fully customize the candidates/parties/colors. As you can see, the colors start the same as Dave's - red for Democrats, blue for Republicans.

If you don't like the shades, you can use the old calculator.

I know some people think it’s an overdue change, but I think it’s a shame that this new EVC seems to be causing the increasing abandonment of the distinctive Atlas colours for the mainstream media ones.

If people don't want to do the old colors, then they aren't going to do it. One reason I started working on this in the first place was that I was noticing more and more people using other map generators and just posting images of their maps. This isn't like the 2000s or early 2010s. There are many options available for this now. I'm not going to purposefully hold things back just to enforce an alternate color scheme. I don't blame people, either. The previous map calculator produces maps that just look very 1990s. I mean, this entire forum is literally using code and a theme designed in the early 2000s. Like it or not, things have to change eventually. At a certain point, it requires more work to keep them the same than it does to evolve and adapt.

At any rate, if people don't like this, I expect them to not use it. I never expected everyone to like it. I know better than that. This forum and the world in general is full of people who like specific things, and that's that, come hell or high water.
Logged
Pages: 1 2 [3] 4 5 6 7 8  
« previous next »
Jump to:  


Login with username, password and session length

Terms of Service - DMCA Agent and Policy - Privacy Policy and Cookies

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Page created in 0.062 seconds with 11 queries.