diff --git a/src/_includes/template/areas/additionalDwellings.vto b/src/_includes/template/areas/additionalDwellings.vto index 02b36a9..38a0f9e 100644 --- a/src/_includes/template/areas/additionalDwellings.vto +++ b/src/_includes/template/areas/additionalDwellings.vto @@ -1,6 +1,41 @@

Net additional dwellings in {{ title }} ยง

-{{ if additionalDwellings }} - {{ additionalDwellings |> JSON.stringify() }} +{{ if additionalDwellings.length > 0 }} + {{ set y_spacing = additionalDwellings |> ySpacing('value') }} + {{ comp.oi.chart.line({ config: { + data: additionalDwellings, + height: 600, + axis: { + x: { title: { label: 'Date' }, grid: { show: true, 'stroke-dasharray': '6 2', 'stroke-width': '1'}, tick: { spacing: 4 } }, + y: { title: { label: 'Net additional dwellings' }, grid: { 'stroke-width': '1'}, tick: { spacing: y_spacing } } + }, + columns: [{ + name: 'decimal_date', + template: '{{ date | strptime("-%y") | decimalYear() }}' + }], + series: [ + { + title: 'Net additional dwellings', + x: 'decimal_date', + y: 'value', + tooltip: "Net additional dwellings
{{ date }}: {{ value | toLocaleString() }}" + }] + } + }) + }} {{ else }} - {{ console.log(areacode) }} -{{ /if }} \ No newline at end of file +

No data available at this geography

+{{ /if }} +

+ Data: Net additional dwellings data come from + Table 122 of the live tables on net supply of + housing. Published by the Ministry of Housing, Communities and Local Government. +

+

+ Notes: On the chart, data points are set to the end date of the time period. There are 16 data notes which can be viewed in the + ODF file for Table 122. The three most recent are: +

    +
  1. The 2017-18 published figure for Thanet has been manually adjusted by DLUHC to remove 84 units incorrectly included in the raw data by the authority. These units were empty homes returning to use and were removed as they did not meet the definition of a net additional dwelling.
  2. +
  3. Net additions for Isles of Scilly are negative for 2021-22 since it is a small local authority area with very limited development in this year.
  4. +
  5. Figures for the following local authorities were not submitted in 2022-23 so were imputed: Telford and Wrekin UA, Wiltshire UA and Ribble Valley.
  6. + +

    \ No newline at end of file