diff --git a/src/data/hexmaps/index.vto b/src/data/hexmaps/index.vto index 8acda48..6f6d215 100644 --- a/src/data/hexmaps/index.vto +++ b/src/data/hexmaps/index.vto @@ -4,7 +4,8 @@ section: data colour: c5-bg desc: "Local authority based hex maps for housing data" --- -

Vacant homes (%) in England in 2023

+{{# {{ JSON.stringify(vacantHomes()) }} #}} +

Vacant homes (%) in England & Wales

{{ comp.oi.map.hex_cartogram({ config: { width: 600, @@ -16,12 +17,16 @@ desc: "Local authority based hex maps for housing data" template: "{{ n }}" }], matchKey: "geography_code", - value: "AllVacants_pct", + value: 2023, min: 0, - max: 5, + max: 7.5, legend: { position: "top right", items: [{ + value: 7.5, + label: '>7.5%' + }, + { value: 5, label: '5%' }, @@ -35,6 +40,9 @@ desc: "Local authority based hex maps for housing data" }] }, tools: { + slider: { + columns: [2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023] + }, filter: { label: "filterLabel", position: "top left" @@ -54,7 +62,7 @@ desc: "Local authority based hex maps for housing data" "stroke-opacity": 0.5 } }, - tooltip: "{{ n }}
All vacant homes: {{ AllVacants_pct }}%", + tooltip: "{{ n }}
{{ _value }}: {{ {{ _value }} }}%", attribution: "Data: Vacant home percentages are calculated by dividing the respective counts in Table 615: vacant dwellings by local authority district: England, from 2004 by the dwelling count estimates in Table 125: dwelling stock estimates by local authority district." } }) }} @@ -63,27 +71,27 @@ desc: "Local authority based hex maps for housing data" Data for Northern Ireland, Scotland and Wales are published seperately and are not currently included on this site.

-

Median house price to residence-based earnings ratio in England, 2023

+

Median house price to residence-based earnings ratio in England & Wales

{{ comp.oi.map.hex_cartogram({ config: { width: 600, hexjson: "hexjson.uk-local-authority-districts-2023", - data: housepriceratio(), + data: housePriceRatio(), scale: 'Viridis', columns: [{ name: 'filterLabel', template: "{{ n }}" }], matchKey: "geography_code", - value: "value", + value: 2023, min: 0, max: 30, legend: { position: "top right", items: [{ value: 30, - label: '30' + label: '30+' }, { value: 15, @@ -114,7 +122,16 @@ desc: "Local authority based hex maps for housing data" "stroke-opacity": 0.5 } }, - tooltip: "{{ n }}
Ratio: {{ value }}", + tools: { + slider: { + columns: [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023] + }, + filter: { + label: "filterLabel", + position: "top left" + } + }, + tooltip: "{{ n }}
{{ _value }}: {{ {{ _value }} }}", attribution: "Data: Office for National Statistics House price to residence-based earnings ratio" } }) }} \ No newline at end of file