Skip to content

Commit

Permalink
Add links to hex maps
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-strange committed Sep 2, 2024
1 parent f443828 commit 5ec3b34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/_includes/template/areas/housePrices.vto
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h3>House prices in {{ title }} <a id='house-prices' class='anchor' href='#house-prices' data-dependencies='/assets/js/section-links.js'>§</a></h3>
{{# {{ set chart_data = medianHousePrice(areacode) }} #}}
<p>See <a href="/data/hexmaps/#house-price-to-earnings-ratio">house price to earnings ratio for England and Wales</a>.</p>
{{ if medianHousePrice.length > 0 }}
{{ set y_spacing = medianHousePrice |> ySpacing('Median') }}
{{ comp.oi.chart.line({ config: {
Expand Down
2 changes: 2 additions & 0 deletions src/_includes/template/areas/vacantHomes.vto
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<h3>Vacant homes in {{ title }} <a id='vacant-homes' class='anchor' href='#vacant-homes' data-dependencies='/assets/js/section-links.js'>§</a></h3>

<p>See how {{ title }} <a href="/data/hexmaps/#vacant-homes">compares to the rest of the UK</a>.</p>

{{ if pctVacantHomes.length == 0 }}
<p>Vacant homes data are not published for this area.</p>
{{ else }}
Expand Down

0 comments on commit 5ec3b34

Please sign in to comment.