Skip to content

Commit

Permalink
Remove boundaries
Browse files Browse the repository at this point in the history
Trying to avoid memory issues
  • Loading branch information
slowe committed Apr 2, 2024
1 parent 6287b92 commit 76becfe
Showing 1 changed file with 0 additions and 93 deletions.
93 changes: 0 additions & 93 deletions src/themes/society/general-elections/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@ description: |
label: "filterLabel"
}
},
"boundaries": {
"country": {
"stroke": "#bbbbbb",
"stroke-width": 2,
"stroke-linecap": "round"
},
"region": {
"stroke": "#bbbbbb",
"stroke-width": 2,
"stroke-linecap": "round"
}
},
"tooltip": "<strong>{{ n }}</strong><br />{{ _value }}: {{ {{ _value }} }} / {{ {{ _value }} MP }}<br />Turnout:<br />2019: <strong>{{ GE 2019 turnout }}%</strong><br />2017: <strong>{{ GE 2017 turnout }}%</strong><br />2015: <strong>{{ GE 2015 turnout }}%</strong><br />2010 <strong>{{ GE 2010 turnout | toFixed(1) }}%</strong>",
"attribution": 'Data: <a href="https://www.parliament.uk/about/how/elections-and-voting/by-elections/by-elections-2019/">By-elections since 2019</a> (UK Parliament), General Election results <a href="https://ge2019.odileeds.org/">2019</a> (Britain Elects, New Statesman, Open Innovations; <a href="http://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7979/" target="_parent">2017</a> (Parliament), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7186/" target="_parent">2015</a> (Parliament) & <a href="https://docs.google.com/spreadsheets/d/1aU6xNJNdO4axSNidWPNSsJb4aNDq_TI6DIdSkcLHcmk/edit#gid=1">2010</a> (The Guardian).'
},
Expand Down Expand Up @@ -81,18 +69,6 @@ description: |
label: "filterLabel"
}
},
"boundaries": {
"country": {
"stroke": "#bbbbbb",
"stroke-width": 2,
"stroke-linecap": "round"
},
"region": {
"stroke": "#bbbbbb",
"stroke-width": 2,
"stroke-linecap": "round"
}
},
"tooltip": "<strong>{{ n }}</strong><br />{{ _value }}: {{ {{ _value }} }} / {{ {{ _value }} MP }}<br />Turnout:<br />2019: <strong>{{ GE 2019 turnout }}%</strong><br />2017: <strong>{{ GE 2017 turnout }}%</strong><br />2015: <strong>{{ GE 2015 turnout }}%</strong><br />2010 <strong>{{ GE 2010 turnout | toFixed(1) }}%</strong>",
"attribution": 'Data: <a href="https://www.parliament.uk/about/how/elections-and-voting/by-elections/by-elections-2019/">By-elections since 2019</a> (UK Parliament), General Election results <a href="https://ge2019.odileeds.org/">2019</a> (Britain Elects, New Statesman, Open Innovations; <a href="http://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7979/" target="_parent">2017</a> (Parliament), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7186/" target="_parent">2015</a> (Parliament) & <a href="https://docs.google.com/spreadsheets/d/1aU6xNJNdO4axSNidWPNSsJb4aNDq_TI6DIdSkcLHcmk/edit#gid=1">2010</a> (The Guardian).'
},
Expand Down Expand Up @@ -126,18 +102,6 @@ description: |
label: "filterLabel"
}
},
"boundaries": {
"country": {
"stroke": "#bbbbbb",
"stroke-width": 2,
"stroke-linecap": "round"
},
"region": {
"stroke": "#bbbbbb",
"stroke-width": 2,
"stroke-linecap": "round"
}
},
"tooltip": "<strong>{{ n }}</strong><br />{{ _value }}: {{ {{ _value }} }} / {{ {{ _value }} MP }}<br />Turnout:<br />2019: <strong>{{ GE 2019 turnout }}%</strong><br />2017: <strong>{{ GE 2017 turnout }}%</strong><br />2015: <strong>{{ GE 2015 turnout }}%</strong><br />2010 <strong>{{ GE 2010 turnout | toFixed(1) }}%</strong>",
"attribution": 'Data: <a href="https://www.parliament.uk/about/how/elections-and-voting/by-elections/by-elections-2019/">By-elections since 2019</a> (UK Parliament), General Election results <a href="https://ge2019.odileeds.org/">2019</a> (Britain Elects, New Statesman, Open Innovations; <a href="http://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7979/" target="_parent">2017</a> (Parliament), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7186/" target="_parent">2015</a> (Parliament) & <a href="https://docs.google.com/spreadsheets/d/1aU6xNJNdO4axSNidWPNSsJb4aNDq_TI6DIdSkcLHcmk/edit#gid=1">2010</a> (The Guardian).'
},
Expand Down Expand Up @@ -171,18 +135,6 @@ description: |
label: "filterLabel"
}
},
"boundaries": {
"country": {
"stroke": "#bbbbbb",
"stroke-width": 2,
"stroke-linecap": "round"
},
"region": {
"stroke": "#bbbbbb",
"stroke-width": 2,
"stroke-linecap": "round"
}
},
"tooltip": "<strong>{{ n }}</strong><br />{{ _value }}: {{ {{ _value }} }} / {{ {{ _value }} MP }}<br />Turnout:<br />2019: <strong>{{ GE 2019 turnout }}%</strong><br />2017: <strong>{{ GE 2017 turnout }}%</strong><br />2015: <strong>{{ GE 2015 turnout }}%</strong><br />2010 <strong>{{ GE 2010 turnout | toFixed(1) }}%</strong>",
"attribution": 'Data: <a href="https://www.parliament.uk/about/how/elections-and-voting/by-elections/by-elections-2019/">By-elections since 2019</a> (UK Parliament), General Election results <a href="https://ge2019.odileeds.org/">2019</a> (Britain Elects, New Statesman, Open Innovations; <a href="http://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7979/" target="_parent">2017</a> (Parliament), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7186/" target="_parent">2015</a> (Parliament) & <a href="https://docs.google.com/spreadsheets/d/1aU6xNJNdO4axSNidWPNSsJb4aNDq_TI6DIdSkcLHcmk/edit#gid=1">2010</a> (The Guardian).'
},
Expand Down Expand Up @@ -216,18 +168,6 @@ description: |
label: "filterLabel"
}
},
"boundaries": {
"country": {
"stroke": "#bbbbbb",
"stroke-width": 2,
"stroke-linecap": "round"
},
"region": {
"stroke": "#bbbbbb",
"stroke-width": 2,
"stroke-linecap": "round"
}
},
"tooltip": "<strong>{{ n }}</strong><br />{{ _value }}: {{ {{ _value }} }} / {{ {{ _value }} MP }}<br />Turnout:<br />2019: <strong>{{ GE 2019 turnout }}%</strong><br />2017: <strong>{{ GE 2017 turnout }}%</strong><br />2015: <strong>{{ GE 2015 turnout }}%</strong><br />2010 <strong>{{ GE 2010 turnout | toFixed(1) }}%</strong>",
"attribution": 'Data: <a href="https://www.parliament.uk/about/how/elections-and-voting/by-elections/by-elections-2019/">By-elections since 2019</a> (UK Parliament), General Election results <a href="https://ge2019.odileeds.org/">2019</a> (Britain Elects, New Statesman, Open Innovations; <a href="http://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7979/" target="_parent">2017</a> (Parliament), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7186/" target="_parent">2015</a> (Parliament) & <a href="https://docs.google.com/spreadsheets/d/1aU6xNJNdO4axSNidWPNSsJb4aNDq_TI6DIdSkcLHcmk/edit#gid=1">2010</a> (The Guardian).'
},
Expand All @@ -248,36 +188,3 @@ description: |
items: [{colour: "Con",label: "Con"},{colour: "Lab",label: "Lab"},{colour: "LD",label: "LDem"},{colour: "SNP",label: "SNP"},{colour: "PC",label: "PC"},{colour: "Green",label: "Grn"},{colour: "UKIP",label: "UKIP"},{colour: "Ind",label: "Ind"},{colour: "DUP",label: "DUP"},{colour: "UUP",label: "UUP"},{colour: "SF",label: "SF"},{colour: "SDLP",label: "SDLP"},{colour: "Alliance",label: "Alln"},{colour: "WPB",label: "WPB"},{colour: "Spk",label: "Spk"}]
#}

{#% comp 'wrapper', {
"component": comp.oi.map.hex_cartogram,
"config": {
"colours": {"Con":'#0485A8',"Lab":'#DC4343','LD':'#EAA544','Green':'#5EBD4C','Brexit':'#0FA697','SNP':'#EBDB1C','UKIP':'#73537A','PC':'#4FBA7C','Ind':'#CCA7C6','DUP':'#BF3759','UUP':'#3b75a8','SF':'#2C604D','SDLP':'#53BC5B','Alliance':'#EAA544','Spk':'#909090','XSpk':'#909090','Monster':'#cccccc','WPB':'#1e28d8','none':'#dfdfdf'},
"width": 600,
"hexjson": "hexjson.constituencies",
"data": "sources.society.general-elections",
"columns": [{
name: "filterLabel",
template: "{{ n }} ({{ a }})"
}],
"value": "Current",
"matchKey": "const_id",
"legend": {
position: "top right",
items: [{colour: "Con",label: "Con"},{colour: "Lab",label: "Lab"},{colour: "LD",label: "LDem"},{colour: "SNP",label: "SNP"},{colour: "PC",label: "PC"},{colour: "Green",label: "Grn"},{colour: "UKIP",label: "UKIP"},{colour: "Ind",label: "Ind"},{colour: "DUP",label: "DUP"},{colour: "UUP",label: "UUP"},{colour: "SF",label: "SF"},{colour: "SDLP",label: "SDLP"},{colour: "Alliance",label: "Alln"},{colour: "WPB",label: "WPB"},{colour: "Spk",label: "Spk"}]
},
"tools": {
filter: {
label: "filterLabel"
},
slider: {
columns: ['GE 2010','GE 2015','GE 2017','Pre GE 2019','GE 2019','Current'],
width: "500px",
position: "top"
}
},
"tooltip": "<strong>{{ n }}</strong><br />{{ _value }}: {{ {{ _value }} }} / {{ {{ _value }} MP }}<br />Turnout:<br />2019: <strong>{{ GE 2019 turnout }}%</strong><br />2017: <strong>{{ GE 2017 turnout }}%</strong><br />2015: <strong>{{ GE 2015 turnout }}%</strong><br />2010 <strong>{{ GE 2010 turnout | toFixed(1) }}%</strong>",
"attribution": 'Data: <a href="https://www.parliament.uk/about/how/elections-and-voting/by-elections/by-elections-2019/">By-elections since 2019</a> (UK Parliament), General Election results <a href="https://ge2019.odileeds.org/">2019</a> (Britain Elects, New Statesman, Open Innovations; <a href="http://creativecommons.org/licenses/by-sa/4.0/">CC-BY-SA</a>), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7979/" target="_parent">2017</a> (Parliament), <a href="https://commonslibrary.parliament.uk/research-briefings/cbp-7186/" target="_parent">2015</a> (Parliament) & <a href="https://docs.google.com/spreadsheets/d/1aU6xNJNdO4axSNidWPNSsJb4aNDq_TI6DIdSkcLHcmk/edit#gid=1">2010</a> (The Guardian).'
},
"download": {"text": "General Election results by constituency", "type": "CSV"}
} %}{% endcomp %#}

0 comments on commit 76becfe

Please sign in to comment.