-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhousing.html
More file actions
136 lines (93 loc) · 3.94 KB
/
housing.html
File metadata and controls
136 lines (93 loc) · 3.94 KB
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
<!DOCTYPE html>
<html lang="eng">
<head>
<!--Meta stuff-->
<meta charset="UTF-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!--Import fonts-->
<style>
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@300&display=swap');
</style>
<!--Title - this is the bit that comes up in the tab-->
<title>Data Hub</title>
<!--Main Stylesheet-->
<link rel="stylesheet" href="EcoObservatory/eco.css">
<!--call JS for responsive navbar-->
<script src="Project/navScript.js" defer></script>
<!--The next three lines allow the Vega embed-->
<script src="https://cdn.jsdelivr.net/npm/vega@5.17.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-lite@5.0"></script>
<script src="https://cdn.jsdelivr.net/npm/vega-embed@6.12.2"></script>
<!-- Add icon library -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar">
<div class="page-title">Housing Library</div>
<a href="#" class="toggle-button">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</a>
<div class="navbar-links">
<ul>
<li><a href="eco.html">Monetary Policy</a></li>
<li><a href="Portfolio.html">Portfolio</a></li>
<li><a href="Project.html">Project</a></li>
<li><a href="https://rapidcharts.io/datascience">Course</a></li>
<li><a href="https://github.com/jhellingsdata/jhellingsdata.github.io"><i class="fa fa-github"></i></a></li>
</ul>
</div>
</nav>
<!-- Title -->
<p class=subtitle>Selection of charts focusing on key economic indicators related to Unit 10 of the Core Econ textbook </p>
<hr class="solid">
<!-- START - Grid of divs that will house the charts-->
<section class="container">
<div class="card">
<div class="chart" id="chart1"></div>
</div>
<div class="card">
<div class="chart" id="chart2"></div>
</div>
<div class="card">
<div class="chart" id="chart3"></div>
</div>
<div class="card">
<div class="chart" id="chart4"></div>
</div>
<div class="card">
<div class="chart" id="chart5"></div>
</div>
<div class="card">
<div class="chart" id="chart6"></div>
</div>
<div class="card">
<div class="chart" id="chart7"></div>
</div>
</section>
<script>
// Set the charts that we want on the page as variables linked to JSON files:
var myChart1 = "EcoObservatory/Housing/H1.json";
var myChart2 = "EcoObservatory/Housing/H2.json";
var myChart3 = "EcoObservatory/Housing/H3.json";
var myChart4 = "EcoObservatory/Housing/H4.json";
var myChart5 = "EcoObservatory/Housing/H5.json";
var myChart6 = "EcoObservatory/Housing/H6.json";
var myChart7 = "EcoObservatory/Housing/H7.json";
// Embed the charts in the divs above
vegaEmbed('#chart1', myChart1, {"actions": true});
vegaEmbed('#chart2', myChart2, {"actions": true});
vegaEmbed('#chart3', myChart3, {"actions": true});
vegaEmbed('#chart4', myChart4, {"actions": true});
vegaEmbed('#chart5', myChart5, {"actions": true});
vegaEmbed('#chart6', myChart6, {"actions": true});
vegaEmbed('#chart7', myChart7, {"actions": true});
</script>
</body>
</html>