-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
485 lines (483 loc) · 22.8 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
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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Page Dashboard Manhattan Property Sales</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<!--Font Google-->
<style>
@import url("https://fonts.googleapis.com/css2?family=Cormorant:ital@1&family=Courgette&family=Poppins:wght@300;400;500;600;700&family=Ubuntu&family=Ysabeau+Infant:ital,wght@1,1&display=swap");
</style>
<!--CSS-->
<link rel="stylesheet" href="style.css" />
<!--Icons-CSS-->
<link
href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@2.0.0"></script>
</head>
<body class="responsive-sidebar">
<!--navigasi bar-->
<nav class="sidebar">
<header>
<div class="image-text">
<span class="image">
<img src="img/logo.jpg" alt="logo" />
</span>
</div>
</header>
<div class="menubar">
<div class="menu-links">
<li class="nav-list">
<a href="home.html">
<i class="bx bx-home-alt icon"></i>
</a>
</li>
<ul class="menu-links">
<li class="nav-list">
<a href="index.html">
<i class="bx bxs-dashboard icon"></i>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!--section untuk bagian utama dari dashboard-->
<main class="main">
<!--Header-->
<div class="header">
<h1>Manhattan Property Sales Dashboard</h1>
</div>
<!--navbar untuk mobile-->
<nav class="sidebar-mobile">
<header>
<div class="image-text">
<span class="image">
<img src="img/logo.jpg" alt="logo" />
</span>
</div>
</header>
<div class="menubar">
<div class="menu-links">
<ul class="menu-links">
<li class="nav-list">
<a href="home.html">
<i class="bx bx-home-alt icon"></i>
</a>
</li>
<li class="nav-list">
<a href="index.html">
<i class="bx bxs-dashboard icon"></i>
</a>
</li>
</ul>
</div>
</div>
</nav>
<!--section untuk menampung bagian form-->
<div class="main-content">
<div class="chart-mini-filter">
<!--section form-->
<div class="user-interaction">
<!--FORM-->
<form id="filter-form" action="#" , method="post">
<div class="filter">
<!--Section untuk select "NEIGHBORHOOD"-->
<div class="filter-neighborhood">
<label id="label-NEIGHBORHOOD" for="NEIGHBORHOOD"
>NEIGHBORHOOD
</label>
<select id="NEIGHBORHOOD" name="NEIGHBORHOOD">
<option value="" disabled selected hidden>ALL</option>
<option value="ALPHABET CITY">ALPHABET CITY</option>
<option value="CHELSEA">CHELSEA</option>
<option value="CHINATOWN">CHINATOWN</option>
<option value="CIVIC CENTER">CIVIC CENTER</option>
<option value="CLINTON">CLINTON</option>
<option value="EAST VILLAGE">EAST VILLAGE</option>
<option value="FASHION">FASHION</option>
<option value="FINANCIAL">FINANCIAL</option>
<option value="FLATIRON">FLATIRON</option>
<option value="GRAMERCY">GRAMERCY</option>
<option value="GREENWICH VILLAGE-CENTRAL">
GREENWICH VILLAGE-CENTRAL
</option>
<option value="GREENWICH VILLAGE-WEST">
GREENWICH VILLAGE-WEST
</option>
<option value="HARLEM-CENTRAL">HARLEM-CENTRAL</option>
<option value="HARLEM-EAST">HARLEM-EAST</option>
<option value="HARLEM-UPPER">HARLEM-UPPER</option>
<option value="HARLEM-WEST">HARLEM-WEST</option>
<option value="INWOOD">INWOOD</option>
<option value="JAVITS CENTER">JAVITS CENTER</option>
<option value="KIPS BAY">KIPS BAY</option>
<option value="LITTLE ITALY">LITTLE ITALY</option>
<option value="LOWER EAST SIDE">LOWER EAST SIDE</option>
<option value="MANHATTAN VALLEY">MANHATTAN VALLEY</option>
<option value="MIDTOWN CBD">MIDTOWN CBD</option>
<option value="MIDTOWN EAST">MIDTOWN EAST</option>
<option value="MIDTOWN WEST">MIDTOWN WEST</option>
<option value="MORNINGSIDE HEIGHTS">
MORNINGSIDE HEIGHTS
</option>
<option value="MURRAY HILL">MURRAY HILL</option>
<option value="ROOSEVELT ISLAND">ROOSEVELT ISLAND</option>
<option value="SOHO">SOHO</option>
<option value="SOUTHBRIDGE">SOUTHBRIDGE</option>
<option value="TRIBECA">TRIBECA</option>
<option value="UPPER EAST SIDE (59-79)">
UPPER EAST SIDE (59-79)
</option>
<option value="UPPER EAST SIDE (79-96)">
UPPER EAST SIDE (79-96)
</option>
<option value="UPPER EAST SIDE (96-110)">
UPPER EAST SIDE (96-110)
</option>
<option value="UPPER WEST SIDE (59-79)">
UPPER WEST SIDE (59-79)
</option>
<option value="UPPER WEST SIDE (79-96)">
UPPER WEST SIDE (79-96)
</option>
<option value="UPPER WEST SIDE (96-116)">
UPPER WEST SIDE (96-116)
</option>
<option value="WASHINGTON HEIGHTS LOWER">
WASHINGTON HEIGHTS LOWER
</option>
<option value="WASHINGTON HEIGHTS UPPER">
WASHINGTON HEIGHTS UPPER
</option>
<option value="">ALL</option>
</select>
</div>
<!--section untuk tanggal-->
<div class="from-date">
<label id="date" for="start-date">FROM:</label>
<input type="date" id="start-date" name="start-date" value="2016-09-01"/>
</div>
<div class="to-date">
<label id="date" for="end-date">TO:</label>
<input type="date" id="end-date" name="end-date" value="2017-08-31"/>
</div>
<!--Tombol untuk submit filter-->
<div class="buttons">
<label id="label-btn" for="stickyButton">tombol</label>
<button id="stickyButton" class="sticky-button" type="submit">
FILTER
</button>
</div>
</div>
</form>
</div>
<div class="chartCard">
<div class="chartTotalRevenue">
<h3>Total revenue</h3>
<p id="total-revenue-text"></p>
</div>
<div class="chartTotalTransaction">
<h3>Total Transaction</h3>
<p id="total-transaction"></p>
</div>
<div class="chartAverageSales">
<h3>Average Sales</h3>
<p id="average-sales"></p>
</div>
<div class="chartResidentialUnit">
<h3>Total Residential Unit</h3>
<p id="total-residential"></p>
</div>
<div class="chartCommercialUnit">
<h3>Total Commercial Unit</h3>
<p id="total-commercial"></p>
</div>
</div>
</div>
</div>
<div class="chartArea">
<!--section untuk chart ringkasan yang berupa angka-->
<!--section untuk chart berupa grafik-->
<div class="chart">
<div class="chartQuarterlyBox">
<div class="chartQuarterlyContainer">
<canvas id="chartQuarterly"> </canvas>
</div>
<div>
<div class="button-Quarterly">
<button
id="infoQuarterlyChart"
onclick="showHideQuarter(event)"
>
INSIGHT
</button>
</div>
<div id="insightModal" class="modal">
<div class="modal-content">
<h1 class="Popuptitle"> Insight Quarterly Sales Revenue</h1>
<p id="insightQuarterlyChart">
Adanya
<b>Perkembangan kenaikan menuju Q4 2016 yang menunjukkan adanya peningkatan aktivitas pasar menjelang akhir tahun</b>.
Kemudian terus
<b>meningkat ke Q1 2017 dan mencapai puncak di Q2 2017 disusul oleh penurunan tajam di Q3 2017</b>.
Penurunan ini bisa mencerminkan
<b>penurunan musiman atau mungkin faktor pasar yang mempengaruhi keputusan pembelian</b>.
</p>
<div class="button-center-container">
<button class="close" onclick="closeModal()">Close</button>
</div>
</div>
</div>
</div>
</div>
<div class="chartMonthlyBox">
<div class="chart-2-filter-div">
<form class="form-chart-2" onsubmit="updateMonthlyRevenueChart(event)">
<label class="start-month" for="start-month">Start Month:</label>
<select id="start-month"></select>
<label class="end-month"for="end-month">End Month:</label>
<select id="end-month"></select>
<input type="submit" value="Apply" id="chart-2-filter-apply" />
</form>
</div>
<div class="chartMonthlyContainer">
<canvas id="chartMonthly"> </canvas>
</div>
<div>
<div class="button-center-container">
<button id="infoLineChart" onclick="showHideMonthly(event)">INSIGHT</button>
</div>
<div id="insightMonthlyModal" class="modal">
<div class="modal-content-monthly">
<div id="insightChartLine">
<h1 class="Popuptitle"> Insight Monthly Average Revenue </h1>
<p class="insightLineChartFilter hidden" data-range-from="2017-03" data-range-to="2017-06">
Pendapatan antara <b>bulan Maret 2017 hingga Juni 2017 mengalami peningkatan yang signifikan</b>
</p>
<p class="insightLineChartFilter hidden" data-range-from="2016-09" data-range-to="2017-03">
Pendapatan antara <b>bulan September 2016 hingga Maret 2017 mengalami fluktasi naik turun</b>
</p>
<p class="insightLineChartFilter hidden" data-range-from="2017-06" data-range-to="2017-08">
Pendapatan antara <b>bulan Juni 2017 hingga Agustus 2017 mengalami penurunan yang signifikan</b> setelah mencapai puncak pendapatan rata-rata tertinggi
</p>
<p class="insightLineChartFilter hidden" data-range-from="2016-09" data-range-to="2017-08">
Perkembangan rata-rata harga penjualan bulanan menunjukkan <b>fluktuasi signifikan dari September 2016 hingga Agustus 2017</b>. <b>Pendapatan terendah terjadi pada September 2016 ($520,113)</b> dan
<b>puncak pada Juni 2017 ($764,771)</b>. Setelah itu, pendapatan menurun drastis hingga Agustus 2017. Fluktuasi ini dipengaruhi oleh <b>faktor musiman, kebijakan ekonomi, suku bunga, dan
peristiwa global, yang memengaruhi kepercayaan dan keputusan konsumen </b>. Memahami perkembangan ini membantu pelaku pasar merencanakan strategi pembelian atau penjualan.
</p>
</p>
<div class="button-center-container">
<button class="close" onclick="closeMonthlyModal()">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="chartCompositionBox">
<div class="chartCompositionContainer">
<canvas id="chartComposition"></canvas>
</div>
<div>
<div class="button-piechart">
<button id="infoPieChart" onclick="showHideComposition(event)">
INSIGHT
</button>
</div>
<div id="insightCompositionModal" class="modal">
<div class="modal-content">
<h1 class="Popuptitle">
Insight Sales Composition Building Classification
</h1>
<p id="insightPieChart">
Chart di atas menunjukkan bahwa
<b>Condo Residential Unit in Elevator Building</b>
mendominasi penjualan dengan
<b>90,1% atau sekitar US$ 3.997.746.183.</b>
Penjualan didominasi oleh
<b>Residential Unit in Elevator building,</b>
jauh lebih besar dibandingkan jenis properti lainnya seperti
<b>Residential Unit in 2-10 unit dan Residential Unit in Walk Building.</b>
</p>
<div class="button-center-container">
<button class="close" onclick="closeCompositionModal()">Close</button>
</div>
</div>
</div>
</div>
</div>
<div class="chartTaxClassBox">
<div class="chart-4-filter-div">
<form onsubmit="updateTaxClassChart(event)">
<label for="chart-4-taxclass">Select Tax Class: </label>
<select id="chart-4-taxclass"></select>
</form>
<div class="chart-4-sort-div">
<button id="btn-sort-ascending" onclick="sortTaxClass('asc')">
Sort Ascending
</button>
<button id="btn-sort-descending" onclick="sortTaxClass('desc')">
Sort Descending
</button>
</div>
</div>
<div class="chartTaxClassContainer">
<canvas id="chartTaxClass"> </canvas>
</div>
<div>
<div class="buttonInsight-Taxclass">
<button
id="infoChartTaxClass"
onclick="showHideTaxClass(event)"
>
INSIGHT
</button>
</div>
<div id="insightTaxClassModal" class="modal">
<div class="modal-content">
<h1 class="Popuptitle"> Insight Revenue By Tax Class</h1>
<p id="insightChartTaxClass"></p>
<div class="button-center-container">
<button class="close" onclick="closeTaxClassModal()">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="chart-mega">
<div class="chart-mega-1">
<div class="sortChartMega">
<div class="sortRevenue">
<div class="chartMegaRevenue">
<label for="sortAscRevenue">Sort by Revenue : </label>
</div>
<div class="buttonSortRevenue">
<button id="sortAscRevenue" onclick="sortChartNeighbourhood('revenue','asc')">Revenue Asc</button>
<button id="sortDescRevenue" onclick="sortChartNeighbourhood('revenue','desc')">Revenue Desc</button>
</div>
</div>
<div class="sortTransactions">
<div class="chartMegaTransaction">
<label for="sortAscTransactions">Sort by Transaction : </label>
</div>
<div class="buttonSortTransaction">
<button id="sortAscTransactions" onclick="sortChartNeighbourhood('transaction','asc')">Transaction Asc</button>
<button id="sortDescTransactions" onclick="sortChartNeighbourhood('transaction','desc')">Transaction Desc</button>
</div>
</div>
</div>
<div class = "megachart-container">
<canvas id="megachart"> </canvas>
</div>
<div>
<div class="button-center-container">
<button id="infoChartMega" onclick="showHideInsight(event)">
INSIGHT
</button>
</div>
<div id="insightMegaModal" class="modal">
<div class="modal-content">
<h1 class="Popuptitle"> Insight Top 10 Total Revenue & Transaction By Neighborhood</h1>
<p>
Chart di atas menunjukkan
<b>Perbedaan Jumlah Pendapatan dan Transaksi Penjualan Properti Berdasarkan Neighborhood di Manhattan, New York</b>
menunjukkan bahwa <b>Harlem-Central</b> memiliki pendapatan tertinggi dengan <b>557 transaksi penjualan</b>.
<b>Midtown West</b> memiliki pendapatan tertinggi kedua dan jumlah transaksi terbanyak, yaitu <b>614</b>.
<b>Tribeca</b> mencatat pendapatan terkecil dengan <b>308 transaksi</b>, sedangkan <b>Clinton</b> memiliki jumlah transaksi paling sedikit, yaitu <b>235 transaksi</b>.
</p>
<div class="button-center-container">
<button class="close" onclick="closeMegaModal()">Close</button>
</div>
</div>
</div>
</div>
</div>
<div class="chart-mega-2">
<div class="sortTotalRevenue">
<label id="sortAscMega" for="sortAsc">Sort by Revenue : </label>
<button id="sortChartAsc" onclick="sortChartDataRevenue('revenue','asc')">Sort Ascending</button>
<button id="sortChartDesc" onclick="sortChartDataRevenue('revenue','desc')">Sort Descending</button>
</div>
<div class="megachart-2-container">
<canvas id="megachart_2"> </canvas>
</div>
<div>
<div class="button-center-container">
<button id="infoChart2Mega" onclick="showHideInsight2(event)">
INSIGHT
</button>
</div>
<div id="insight2MegaModal" class="modal">
<div class="modal-content-building">
<h1 class="Popuptitle"> Insight Top 10 Total Revenue by Building Category</h1>
<p id="insightChart2Mega">
Chart di atas menunjukkan
<b>Perbandingan Jumlah Pendapatan di Manhattan, New York Berdasarkan Kategori Bangunannya</b>
dimana <b>13 Condos - Elevator Apartements</b> merupakan kategori bangunan yang <b>paling populer</b> dengan total pendapatan mencapai <b>$3,977,746,183</b>, setara dengan <b>91% dari total pendapatan keseluruhan</b>.
<b>07 Rentals - Walkup Apartements</b> merupakan kategori bangunan <b>tertinggi kedua</b> dengan total pendapatan sebesar <b>$92,785,291</b>, setara dengan <b>2,1% dari total penjualan keseluruhan</b>.
<b>15 Condos - 2-10 Unit Resindential</b> merupakan kategori bangunan <b>tertinggi ketiga</b> dengan total pendapatan sebesar <b>$72,920,548</b>, setara dengan <b>1,7% dari total penjualan keseluruhan</b>.
Sedangkan <b>01 One Family Dwellings</b> menjadi kategori bangunan dengan <b>penjualan terendah</b> yakni sebesar <b>$13,070,572</b>, setara dengan <b>0.3% dari total pendapatan keseluruhan</b>.
</p>
<div class="button-center-container">
<button class="close" onclick="closeMega2Modal()"> Close </button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--About-->
<section class="about" id="about">
<div class="about-img">
<img src="img/home4.png" alt="">
</div>
<div class="about-text">
<a href="#about"></a>
<h2>About Dataset</h2>
<p>
Dataset ini berisi data dan analisis mengenai
pasar property di Manhattan yang berupa Neighborhood,building category,
tax class dan sebagainya. Sehingga pengguna dapat mengamati tren harga,menemukan
properti yang sesuai dengan kebutuhan dan anggaran,serta melakukan evaluasi investasi
yang tepat.
</p>
</div>
</section>
<!--footer-->
<footer class="footer">
<div class="footer-box">
<h2>Manhattan Sales Dashboard</h2>
<p>Follow our social media:</p>
<div class="social">
<a href="https://www.linkedin.com/school/revou/"
><i class="bx bxl-linkedin"></i
></a>
<a href="https://x.com/revoudotco"><i
class="bx bxl-twitter"></i></a>
<a href="https://www.instagram.com/revou_id/"
><i class="bx bxl-instagram"></i
></a>
<a
href="https://github.com/Kampus-Merdeka-Software-Engineering/km-feb24-medan-12"
><i class="bx bxl-github"></i
></a>
</div>
</div>
</footer>
<div class="copyright">
<p>© Medan-Team 12</p>
</div>
</main>
<!--file javascript-->
<script src="script.js"></script>
<script src="script_2.js"></script>
</body>
</html>