-
Notifications
You must be signed in to change notification settings - Fork 2
/
PropertyPrices.html
136 lines (110 loc) · 5.32 KB
/
PropertyPrices.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
---
layout: default
title: Property Prices
---
<div class="blurb">
<h1>Information on Property Prices</h1>
</div>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script type="text/javascript" src="jquery.csv.min.js"> </script>
<script type="text/javascript" src="plotly-latest.min.js"> </script>
<script type="text/javascript" src="CombinedGraphs.js"> </script>
<script type="text/javascript" src="DivToggling.js"> </script>
<script type="text/javascript">
$(document).ready(function(){
generateGraphFromCsv("/Graphs/data/HouseDataQuarterly.csv", PropertyDataGraph);
generateGraphFromCsv("/Graphs/data/Infometrics.csv", InfometricsGraph);
generateGraphFromCsv("/Graphs/data/BCsAndPopulationGraph.csv", BCsAndPopulationGraph);
generateGraphFromCsv("/Graphs/data/RentDetailedQuarterly.csv", SuburbRentalGraph);
});
</script>
</head>
<body>
<div class="hideshow" id="button" style="margin-left:80px;">
<button onclick="ToggleA()" style="background:#ffb3b3;">Median House Price</button>
<button onclick="ToggleB()" style="background:#ffb3b3;">Housing Affordability Index</button>
<button onclick="ToggleC()" style="background:#ffb3b3;">Rental Costs</button>
</div>
<div id="PropertyDataGraph" class="clsA" style="width:1000px;height:500px;"></div>
<div class="clsA">
Choose a data type:
<select class="PropertySales_DataType" id="PropertySales_DataType" onchange="generateGraphFromCsv('/Graphs/data/HouseDataQuarterly.csv', PropertyDataGraph)">
<option value="1" selected="selected">Median House Price</option>
<option value="2">Number of House Sales</option>
<option value="3">Both</option>
</select>
</div>
<div class="clsA">
Datasource: <a href="http://ecoprofile.infometrics.co.nz/Wellington%20City/QuarterlyEconomicMonitor/HouseSales" target="_blank">Infometrics</a>
<a href="/Graphs/data/HouseSalesQuarterly.csv" target="_blank">(.csv)</a>
</div>
<div id="InfometricsGraph" class="clsB" style="display:none;" style="width:1000px;height:500px;"></div>
<div class="clsB" style="display:none;">
Choose a data type:
<select class="InfometricsGraph_Datatype" id="InfometricsGraph_Datatype" onchange="generateGraphFromCsv('/Graphs/data/Infometrics.csv', InfometricsGraph)">
<option value="1" selected="selected">Housing Affordability Index</option>
<option value="2">House Price Growth</option>
<option value="3">Rental Affordability Index</option>
<option value="4">Growth of Average Rental Costs</option>
</select>
</div>
<div class="clsB" style="display:none;">
Datasource: <a href="http://ecoprofile.infometrics.co.nz/Wellington%20City/QuarterlyEconomicMonitor" target="_blank">Infometrics</a>
<a href="/Graphs/data/Infometrics.csv" target="_blank">(.csv)</a>
</div>
<div id="Extra references" class="clsB" style="display:none;"></div>
<div id="SuburbRentalGraph" class="clsC" style="display:none;" style="width:1000px;height:500px;"></div>
<div class="clsC" style="display:none;">
Choose an area:
<select class="AreaDD_SuburbRentalGraph" id="AreaDD_SuburbRentalGraph" onchange="generateGraphFromCsv('/Graphs/data/RentDetailedQuarterly.csv', SuburbRentalGraph)">
<option value="1" selected="selected">TA Total</option>
<option value="2">Brooklyn</option>
<option value="3">Hataitai</option>
<option value="4">Island Bay/Melrose</option>
<option value="5">Johnsonville/Newlands</option>
<option value="6">Karori</option>
<option value="7">Karori South/Makara</option>
<option value="8">Kelburn/Aro Valley</option>
<option value="9">Khandallah</option>
<option value="10">Kilbirnie/Lyall Bay</option>
<option value="11">Kingston/Happy Valley</option>
<option value="12">Lambton</option>
<option value="13">Miramar/Strathmore</option>
<option value="14">Mt Cook</option>
<option value="15">Mt Victoria/Roseneath</option>
<option value="16">Ngaio/Kaiwharawhara/Wilton</option>
<option value="17">Northland</option>
<option value="18">Oriental Bay/Seatoun</option>
<option value="19">Tawa/Grenada North</option>
<option value="20">Te Aro</option>
<option value="21">Vogeltown/Berhampore/Newtown</option>
<option value="22">Wadestown/Thordon</option>
</select>
</div>
<div class="clsC" style="display:none;">
Choose a property type:
<select class="TypeDD_SuburbRentalGraph" id="TypeDD_SuburbRentalGraph" onchange="generateGraphFromCsv('/Graphs/data/RentDetailedQuarterly.csv', SuburbRentalGraph)">
<!-- <option value="1" selected="selected">Property Type Total</option> -->
<option value="1" selected="selected">House</option>
<option value="2">Apartment</option>
<option value="3">Flat</option>
<option value="4">Room</option>
</select>
</div>
<div class="clsC" style="display:none;">
Choose a property size:
<select class="BedroomsDD_SuburbRentalGraph" id="BedroomsDD_SuburbRentalGraph" onchange="generateGraphFromCsv('/Graphs/data/RentDetailedQuarterly.csv', SuburbRentalGraph)">
<option value="1" selected="selected">Bedrooms Total</option>
<option value="2">1</option>
<option value="3">2</option>
<option value="4">3</option>
<option value="5">4</option>
<option value="6">5+</option>
</select>
</div>
<div class="clsC" style="display:none;">
Datasource: <a href="http://www.mbie.govt.nz/info-services/housing-property/sector-information-and-statistics/rental-bond-data" target="_blank">Ministry of Business, Innovation and Employment</a>
<a href="/Graphs/data/RentDetailedQuarterly.csv" target="_blank">(.csv)</a>
</div>
</body>