Skip to content

Commit

Permalink
Slight change to colour, yellow was not working. Extended upper limit…
Browse files Browse the repository at this point in the history
… to 75% due to new data
  • Loading branch information
Simon Kenny committed May 23, 2015
1 parent 60ecc0b commit 26e704f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions SetLayersViaVote.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var NUM_CONSTITUENCIES = 43;

var QTR_1 = 0.45;
var QTR_2 = 0.5;
var QTR_3 = 0.7;
var QTR_3 = 0.75;

var RED_START = QTR_1;
var RED_END = QTR_2;
Expand Down Expand Up @@ -94,7 +94,8 @@ function setOpacity(ref) {
red = 1;
}
var yellow = yes >= YELLOW_MID && yes < YELLOW_END ?
((yes-YELLOW_MID)*(1/(YELLOW_END-YELLOW_MID))) : 0;
1 - ((yes-YELLOW_MID)*(1/(YELLOW_END-YELLOW_MID))) : 0;
yellow *= 0.6;
/*
var yellow = 0;
if( yes >= YELLOW_START && yes < YELLOW_MID ) {
Expand Down
Binary file modified ireland-constituencies-for-script-with-words.psd
Binary file not shown.
4 changes: 2 additions & 2 deletions results.csv
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
35,Dublin North Central,0.5,0.5,0,0.5
36,Dublin North West,0.7,0.3,0.01,0.5
37,Dublin Central,0.5,0.5,0,0.5
38,Dublin South East,0.5,0.5,0,0.5
38,Dublin South East,0.75,0.25,0,0.58
39,Dublin South Central,0.5,0.5,0,0.5
40,Dublin Mid West,0.71,0.29,1,0.63
41,Dublin South West,0.71,0.29,1,0.63
42,Dublin South,0.7,0.3,0.62,0.5
42,Dublin South,0.7,0.3,0.62,0.68
43,Dún Laoghaire,0.71,0.29,0.89,0.5
Binary file modified results.numbers
Binary file not shown.
Binary file modified vote-with-names-full-size.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vote-with-names.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 26e704f

Please sign in to comment.