-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
208 lines (180 loc) · 6.95 KB
/
index.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html>
<head>
<!-- Import Vega & Vega-Lite (does not have to be from CDN) -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<!-- Import pure.css -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/build/pure-min.css"
integrity="sha384-cg6SkqEOCV1NbJoCu11+bm0NvBRc8IYLRGXkmNrqUBfTjmMYwNKPWBTIKyw9mHNJ" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Google font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:400,500,600,700" rel="stylesheet">
<!-- CSS file -->
<link rel="stylesheet" type="text/css" href="css/styles.css" media="all">
</head>
<body>
<div class="page">
<!-- pure grid group -->
<div class="pure-g">
<div class="pure-u-1-1">
<h1>Most Expensive Melbourne Suburbs</h1>
</div>
<div class="pure-u-1-2">
<div class="description description-left">
<p>
This interactive visualisation explores the top five most expensive surburbs in Victoria to purchase a home.
It explores the trends of the median house price and most expensive suburbs over time (2012-2022).
Also looks into the demographics living in the most expensive suburbs. </p>
</div>
</div>
<div class="pure-u-1-2">
<div class="description description-right">
<p>It is a common theme to see that the most expensive suburbs are in <b> close proximity to the Melbourne CBD
</b> and
<b>located in Melbourne's east</b>.
</p>
</div>
</div>
</div>
<!-- end pure grid group -->
<!-- pure grid group -->
<div class="pure-g">
<div class="pure-u-4-5">
<div id="vis1" class="vis-container"></div>
</div>
<div class="pure-u-1-5">
<div class="description description-right">
<h2 style="padding-top: 10px;">Top 5 Suburbs</h2>
<p class="top-five-list">The most expensive suburbs to live in Melbourne in 2022 are:
<ol>
<li class="a">
Toorak
<div>$6,200,000</div>
</li>
<li>
Canterbury
<div>$3,490,000</div>
</li>
<li>
Brighton
<div>$3,450,000 </div>
</li>
<li>
East Melbourne
<div>$3,300,000 </div>
</li>
<li>
Malvern
<div>$3,020,000</div>
</li>
</ol>
</p>
</div>
</div>
</div>
<div class="pure-g">
<div class="pure-u-1-2">
<div class="description description-left">
<p>
The chloropleth map uses colours to represent the median price range each suburb falls under.
Hover on an area to see a tooltip with further details of the median price.
The top five most expensive suburbs are labelled on the map.
</p>
</div>
</div>
<div class="pure-u-1-2">
<div class="description description-right">
<p>
Slide the year slider to see how top five most expensive suburbs change over time and the median prices of
Melbourne suburbs.
years.
Zoom into the map using the zoom slider.
Turn off and on labels but clicking on the Show Top 5 Most Expensive suburbs.
</p>
</div>
</div>
</div>
<!-- end pure grid group -->
<!-- pure grid group -->
<div class="pure-g">
<div class="pure-u-1-3">
<div class="description description-left">
<h2>Suburb Trends (2012 - 2022)</h2>
<p> Select a suburb from a list of all Victorian suburbs and find out the trend of house prices from 2012 -
2022.
</p>
<p> It is evident that the median house prices have been increasing steadily over time.
</p>
</div>
</div>
<div class="pure-u-2-3">
<div id="vis2" class="vis-container"></div>
</div>
</div>
<!-- end pure grid group -->
<!-- pure grid group -->
<div class="pure-g">
<div class="pure-u-1-3">
<div class="description description-left">
<h2>Comparing Suburbs</h2>
This section compares the most affluent suburbs based on demograhpics factors sourced from the ABS Census
2021.
<p>The average <b> monthly mortgage is $2000 - $3500 </b> and <b>weekly rent is $450 - $600.</b></p>
The average income
is between $2,500 - $2,600.
<p> Source: ABS Census 2021
</p>
</div>
</div>
<div class="pure-u-2-3">
<div id="vis3" class="vis-container"></div>
</div>
</div>
<div class="pure-g">
<div class="pure-u-2-3">
<div id="vis4" class="vis-container"></div>
</div>
<div class="pure-u-1-3">
<div class="description">
<p> The most affluent neighbourhoods share a lot in common. They have a similar median age of 40 - 45, with
the population of females and males being even. </p>
<p> At least 50% of the population has achieved their Bachelor's degree and work full time. </p>
</div>
</div>
</div>
<!-- <div class="pure-g">
<div class="pure-u-1-1">
<div id="vis5" class="vis-container"></div>
</div>
</div> -->
<!-- end pure grid group -->
</div>
<script type="text/javascript">
var spec1 = "js/suburb_median_line_chart.json"
var spec2 = "js/empty_data_map.vg.json";
var spec4 = "js/metrics.json";
var spec5 = "js/p_coords.json";
var spec3 = "js/income_rent.json";
var options = { "actions": false };
vegaEmbed('#vis1', spec2, options).then(function (result) {
// Access the Vega view instance (https://vega.github.io/vega/docs/api/view/) as result.view
}).catch(console.error);
vegaEmbed('#vis2', spec1, options).then(function (result) {
// Access the Vega view instance (https://vega.github.io/vega/docs/api/view/) as result.view
}).catch(console.error);
vegaEmbed('#vis3', spec3, options).then(function (result) {
// Access the Vega view instance (https://vega.github.io/vega/docs/api/view/) as result.view
}).catch(console.error);
vegaEmbed('#vis4', spec4, options).then(function (result) {
// Access the Vega view instance (https://vega.github.io/vega/docs/api/view/) as result.view
}).catch(console.error);
vegaEmbed('#vis5', spec5, options).then(function (result) {
// Access the Vega view instance (https://vega.github.io/vega/docs/api/view/) as result.view
}).catch(console.error);
</script>
</body>
</html>