-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
326 lines (295 loc) · 13.7 KB
/
Copy pathindex.html
File metadata and controls
326 lines (295 loc) · 13.7 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
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="description"
content="An interactive data visualization project exploring whether Belt and Road Initiative countries show different development trajectories from non-BRI countries."
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="img/logo-cropped.png" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/general.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/plots.css" />
<link rel="stylesheet" href="css/queries.css" />
<script
type="module"
src="https://unpkg.com/ionicons@5.4.0/dist/ionicons/ionicons.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/ionicons@5.4.0/dist/ionicons/ionicons.js"
></script>
<script
defer
src="https://unpkg.com/smoothscroll-polyfill@0.4.4/dist/smoothscroll.min.js"
></script>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script defer src="js/script.js"></script>
<script defer src="js/vis.js"></script>
<title>BRI Development Dashboard</title>
</head>
<body>
<header class="header">
<a href="#overview">
<img class="logo" alt="BRI project logo" src="img/logo-cropped.png" />
</a>
<nav class="main-nav">
<ul class="main-nav-list">
<li><a class="main-nav-link" href="#overview">Overview</a></li>
<li><a class="main-nav-link" href="#map">World Map</a></li>
<li><a class="main-nav-link" href="#trends">Time Trends</a></li>
<li><a class="main-nav-link" href="#snapshot">Snapshot</a></li>
<li><a class="main-nav-link" href="#change">Change</a></li>
</ul>
</nav>
<button class="btn-mobile-nav">
<ion-icon class="icon-mobile-nav" name="menu-outline"></ion-icon>
<ion-icon class="icon-mobile-nav" name="close-outline"></ion-icon>
</button>
</header>
<main>
<section class="section-hero" id="overview">
<div class="hero">
<div class="hero-text-box">
<h1 class="heading-primary">
Belt and Road Initiative: Development Paths in Comparison
</h1>
<p class="hero-description">
This project explores whether countries participating in the Belt
and Road Initiative show different development trajectories from
comparable non-BRI countries. Using World Development Indicators,
we compare long-run trends, country-level snapshots, and regional
changes across economic and infrastructure-related measures.
</p>
<a href="#map" class="btn btn--full margin-right-sm">Start Exploring ↓</a>
<a href="#trends" class="btn btn--outline">View Trends</a>
</div>
<div class="hero-img-box">
<img
src="img/train.jpg"
class="hero-img"
alt="Freight train representing international connectivity"
/>
</div>
</div>
</section>
<section class="section-cta">
<div class="container">
<div class="cta">
<div class="cta-text-box">
<h2 class="heading-secondary">Project Introduction</h2>
<p class="cta-text">
Launched in 2013, the Belt and Road Initiative (BRI) is often
associated with infrastructure, trade connectivity, and regional
cooperation. But do BRI countries actually look different in the
data? This dashboard approaches that question descriptively,
comparing BRI and non-BRI countries across time and space.
</p>
<p class="cta-text">
Instead of reducing the story to one indicator, the site combines
a world map, long-run trend lines, a country snapshot scatter plot,
and a post-2013 change chart. Together, these views show both
average patterns and the heterogeneity hidden behind them.
</p>
</div>
<div class="cta-img-box" role="img" aria-label="Project introduction illustration"></div>
</div>
</div>
</section>
<section class="section-map" id="map">
<div class="container center-text">
<span class="subheading">Geographic Overview</span>
<h2 class="heading-secondary">Where Are BRI Countries Located?</h2>
<p class="map-description">
The map gives a spatial overview of BRI and non-BRI countries in our dataset.
Click any country to inspect its classification and show its radar profile on the right.
</p>
</div>
<div class="container map-layout">
<div class="map-panel">
<div class="map-toolbar">
<span class="map-toolbar-note">Scroll to zoom, drag to pan.</span>
<button id="map-reset-zoom" class="map-reset-button" type="button">Reset view</button>
</div>
<div id="world-map" class="map-box"></div>
<p class="map-legend-note">
Green countries are labeled as BRI participants, grey countries are non-BRI/control countries,
orange marks China, and light grey means no classification is available.
</p>
</div>
<div class="country-panel">
<div id="country-info" class="country-info-box">
Click a country on the map to inspect its classification and radar profile.
</div>
</div>
</div>
</section>
<section class="section-time" id="trends">
<div class="container">
<span class="subheading">Main Visualization</span>
<h2 class="heading-secondary">Time Trends Across Countries</h2>
</div>
<div class="container map-narrative">
<div class="thread">
<div class="thread-text-box">
<p class="cta-text">
This section keeps the main time-series view. It shows how key development indicators evolve
from 2000 onward for BRI and non-BRI countries.
</p>
<p class="cta-text">
The vertical reference lines highlight 2013, when the BRI was announced, and 2019 as a later
reference point. Together they help users inspect whether average trajectories appear to diverge,
converge, or remain similar across groups.
</p>
</div>
</div>
</div>
</section>
<section class="video-sec container grid-2-rows">
<div class="video-box">
<div class="viz-controls">
<label for="indicator-select">Indicator</label>
<select id="indicator-select"></select>
<label for="region-select">Region</label>
<select id="region-select"></select>
</div>
<div id="line-chart" class="viz-box"></div>
<p class="viz-note">
Blue line = BRI average, red line = non-BRI average, green line = China data. The country selector is added automatically by the script.
</p>
<div class="insight-grid">
<div id="region-filter-panel" class="viz-small"></div>
<div id="tooltip-panel" class="viz-small"></div>
</div>
</div>
</section>
<section class="section-feature-viz" id="snapshot">
<div class="container center-text">
<span class="subheading">Country Snapshot</span>
<h2 class="heading-secondary">Development Snapshot in a Single Year</h2>
</div>
<div class="container feature-card">
<div class="feature-grid">
<div>
<div class="control-row">
<label for="snapshot-year">Year</label>
<input type="range" id="snapshot-year" min="2000" max="2020" step="1" value="2019" />
<span id="snapshot-year-value" style="font-size:1.5rem;font-weight:600;">2019</span>
<label for="snapshot-region">Region</label>
<select id="snapshot-region"></select>
</div>
<div id="snapshot-chart" class="viz-box"></div>
<p class="viz-note">
Each dot is a country. The x-axis shows GDP per capita (log scale), the y-axis shows internet use.
Color indicates BRI status. This makes within-group heterogeneity visible much better than a single summary statistic.
</p>
</div>
<div class="feature-text">
<p>
Instead of another boxplot, this snapshot view lets users see the spread of countries directly.
It answers a more intuitive question: <strong>where do individual countries sit</strong> in the
development space for a given year?
</p>
<p>
Countries in the upper-right tend to combine higher income with wider internet adoption, while those in the
lower-left are still earlier in that transition. Because every country appears as a point, outliers and clusters
become much easier to notice.
</p>
<ul class="feature-bullets">
<li>Use the year slider to move from early 2000s conditions to more recent snapshots.</li>
<li>Use the region filter to see whether the same BRI/non-BRI pattern holds within Africa, Asia, or Europe.</li>
<li>Hover a point to read the exact country values.</li>
</ul>
</div>
</div>
</div>
</section>
<section class="section-change" id="change">
<div class="container center-text">
<span class="subheading">Change Since the BRI Launch</span>
<h2 class="heading-secondary">How Much Did Regions Change After 2013?</h2>
</div>
<div class="container feature-card">
<div class="feature-grid">
<div>
<div class="control-row">
<label for="change-indicator-select">Indicator</label>
<select id="change-indicator-select"></select>
<label for="change-year">End year</label>
<input type="range" id="change-year" min="2014" max="2020" step="1" value="2019" />
<span id="change-year-value" style="font-size:1.5rem;font-weight:600;">2019</span>
</div>
<div id="change-chart" class="viz-box"></div>
<p class="viz-note">
Bars show the change in regional averages between 2013 and the selected end year.
Positive bars indicate improvement on the selected indicator; negative bars indicate decline.
</p>
</div>
<div class="callout-box">
<h3>Why this view works better</h3>
<p>
This chart directly summarizes <strong>post-2013 change</strong>, which complements the line chart nicely: in that the line chart shows full trajectories, while this view compresses them into a simple comparison of change magnitude.
</p>
<p>
Read it as descriptive evidence, not causal proof. It helps identify where BRI and non-BRI regions appear to move differently, and where they do not.
</p>
</div>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="container grid grid--footer">
<div class="logo-col">
<a href="#overview" class="footer-logo">
<img class="logo" alt="Project logo" src="img/logo-cropped.png" />
</a>
<p class="copyright">COM-480 Data Visualization Project Website</p>
</div>
<div class="address-col">
<p class="footer-heading">Dataset</p>
<address class="contacts">
<p class="address">World Development Indicators + BRI labels</p>
<p>
<a class="footer-link" href="https://data.worldbank.org/" target="_blank">World Bank Data</a><br />
<a class="footer-link" href="#overview">Project Overview</a>
</p>
</address>
</div>
<nav class="nav-col">
<p class="footer-heading">Sections</p>
<ul class="footer-nav">
<li><a class="footer-link" href="#map">World Map</a></li>
<li><a class="footer-link" href="#trends">Time Trends</a></li>
<li><a class="footer-link" href="#snapshot">Snapshot</a></li>
<li><a class="footer-link" href="#change">Change</a></li>
</ul>
</nav>
<nav class="nav-col">
<p class="footer-heading">Tools</p>
<ul class="footer-nav">
<li><a class="footer-link" href="#">D3.js</a></li>
<li><a class="footer-link" href="#">HTML / CSS</a></li>
<li><a class="footer-link" href="#">JavaScript</a></li>
<li><a class="footer-link" href="#">CSV + GeoJSON</a></li>
</ul>
</nav>
<nav class="nav-col">
<p class="footer-heading">Team</p>
<ul class="footer-nav">
<li><a class="footer-link" href="#">Changlan Chen</a></li>
<li><a class="footer-link" href="#">Yizhi Zhao</a></li>
<li><a class="footer-link" href="#">Kaile Chu</a></li>
</ul>
</nav>
</div>
</footer>
</body>
</html>