-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage3.html
216 lines (198 loc) · 8.54 KB
/
page3.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
<!--
Joshua Gregory
Professor Montgomery
Internet Programming
Final Project HTML
-->
<!-- Data Visualization Chart.js Page -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>bigFoot </title>
<link href="style.css" rel="stylesheet" type="text/css" />
<!-- Anychart CDN -->
<script src="https://cdn.anychart.com/releases/8.0.0/js/anychart-
base.min.js"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src=
"https://cdn.jsdelivr.net/npm/chart.js">
</script>
</head>
<body>
<!-- grid wrapper -->
<div class="container" id="p3-container">
<!-- TOP-RIGHT: 1 row x 2 cols -->
<header class="head" id="p3-head">
<!-- banner goes here -->
</header>
<!-- MID-LEFT: 1 row x 1 col -->
<nav class="nav" id="p3-nav">
<center>
<div class="nav-row" id="nav-logo">
<!-- circle logo here -->
</div>
<a href="index.html" id="nav-link">Home Page</a><br>
<br><a href="page2.html" id="nav-link">Walkthrough</a><br>
<br><a href="page3.html" id="nav-link">Visualization</a><br>
<br><a href="page4.html" id="nav-link">Prediction</a><br>
<br><a href="https://github.com/joshtype/bigFeet_bigData.git"
id="nav-link">GitHub Repo</a><br>
<br><a href="https://www.kaggle.com/datasets/chemcnabb/bfro-bigfoot-sighting-report/" id="nav-link">Kaggle</a><br><br>
</center>
</nav>
<!-- SMALLER SCREEN NAVBAR MID: 1 row x all cols -->
<span class="sm-nav" id="p3-sm-nav">
<!-- link option changes to pages -->
<a href="index.html" id="sm-nav-link">Home Page</a><
<select onChange="window.location.href=this.value"
class="drop-nav" id="sm-drop-nav">
<option value="" class="drop-link">Select a Page</option>
<option value="./index.html" class="drop-link">Home Page</option>
<option value="./page2.html" class="drop-link">Walkthrough</option>
<option value="./page3.html" class="drop-link">Visualization</option>
<option value="./page4.html" class="drop-link">Prediction</option>
<option value="https://github.com/joshtype/bigFeet_bigData.git"
class="drop-link">GitHub Repo</option>
<option value="https://www.kaggle.com/datasets/chemcnabb/bfro-bigfoot-
sighting-report/" class="drop-link">Kaggle</option>
</select>
</span>
<!-- MID-MID: 1 row x 1 col -->
<main class="main" id="idx-main">
<span class="page-title" id="p3-page-title">
Data Visualizations
</span>
<!-- JS CHARTS -->
<fieldset class="jschart-field">
<span class="page-subtitle">
Javascript + Chart.js
</span><br>
<p class="chart-info" id="js-chart-info">
Below are three charts created with Javascript, Fetch API,
and Chart.js. Visit the <a href="page2.html">Walkthrough</a>
page for more information regarding the data.
</p>
<!-- chart.js #1 -->
<div class="js-chart-container" id="js-chart1-container">
<canvas class="js-chart-canvas" id="js-chart1-canvas">
<!-- js chart #1 goes here -->
</canvas>
<p class="chart-info" id="js-chart1-info">
The above chart is a pie chart depicting classifcation grade
data points as pie wedges.<br>
From this, it can be observed that almost every sighting is
graded as Class A or Class B. An extremely slim portion of
sightings are graded as Class C.
</div>
<!-- chart.js #2 -->
<div class="js-chart-container" id="js-chart2-container">
Vertical Histogram of Sightings per Month of Year:
<canvas class="js-chart-canvas" id="js-chart2-canvas">
<!-- js chart #2 goes here -->
</canvas>
</div>
<!-- chart.js #3 -->
<div class="js-chart-container" id="js-chart3-container">
<canvas class="jschart-canvas" id="jschart3-canvas">
<!-- js chart #3 goes here -->
</canvas>
</div>
</fieldset> <!-- close js chart field -->
<!-- PYTHON CHARTS -->
<fieldset class="py-chart-field">
<span class="page-subtitle">
Python + Pandas + Matplotlib
</span><br>
<p class="chart-info" id="py-chart1-info">
These are the charts from the same data values.
These were made in Google Colab using Python, Pandas, and
Matpolotlib. Visit <a href="page2.html">Walkthrough page</a>
for detailed information regarding the dataset.
</p>
<!-- python chart #1 -->
<div class="py-chart-contariner" id="py-chart1-container">
Pie Chart of Classification Grades:<br>
<img src="img/py-charts/pie_classGrades.png"
alt="Histogram of classification grades per sighting"
width="50%" height="50%" /><br><br>
Python used to create chart:<br>
<code class="chart-code" id="py-chart1-code">
wdg_labels = ["Class A \n (1,895 Sightings)",<br>
    "Class B \n (1,896 Sightings)",<br>
    "Class C \n (19 Sightings)"]<br>
wdg_colors = ["blue", "yellow", "red"]<br>
plt.pie(num_ea_grade, labels=wdg_labels, startangle=90,<br>
    colors=wdg_colors, shadow=True)<br>
plt.title("Proportions of Classification Grades")<br>
plt.show()
</code>
</div><br><br>
<!-- python chart #2 -->
<div class="py-chart-container" id="py-chart2-container">
Vertical Histogram of Sightings Per Month of Year:<br>
<img src="img/py-charts/histo_monthPerSightings.png"
alt="Histogram of sightings per reported months"
width="50%" height="50%" /><br><br>
Python used to create chart:<br>
<code class="chart-code" id="py-chart2-code">
plt.hist(grade)<br>
plt.ylabel("Number of Sightings")<br>
plt.xlabel("Classification of Each Sighting")<br>
plt.yticks(range(0,1950,75))<br>
plt.figure(figsize=(8,8))<br>
plt.show()<br>
</code>
</div><br><br>
<!-- python chart #3 -->
<div class="py-chart-container" id="py-chart3-container">
Horizontal Histogram of Sightings Per Day of Month:<br>
<img src="img/py-charts/histo_dayPerSightings.png"
alt="Histogram of sightings per reported days"
width="50%" height="50%" /><br><br>
Python used to create chart:<br>
<code class="chart-code" id="py-chart3-code">
plt.hist(mm)<br>
plt.xlabel("Month")<br>
plt.ylabel("Number of Sightings")<br>
plt.show()<br>
</code>
</div>
</fieldset>
</main>
<!-- BOTTOM-ALL: 1 row x all cols -->
<footer class="foot" id="p3-foot">
<center>
<p id="contact-info">
studentDesigns LLC:<br>
1 Bigfoot Way; Forest Cave, NA; 10101<br><br>
<button class="contact-btn" id="mail-btn">
<a href="mailto: [email protected]"
class="contact-link">
<img src="img/icons/mail-icon1.png" id="mail-ico"
class="contact-ico" width="50%"></a>
</button>
<button class="contact-btn" id="phone-btn">
<a href="tel: +15555555555" class="contact-link">
<!-- phone icons -->
<img src="img/icons/ph-ico-blk.png" id="ph-ico-blk"
class="contact-ico" width="50%"></a>
</button>
</p>
<p id="copyright-info">
©2023 Joshua Gregory
</p>
</center>
</footer>
</div> <!-- close grid -->
<!-- sitewide datetime js -->
<script src="script-all-date.js"></script>
<!-- data visualization js -->
<script src="script-p3-charts.js"></script>
<!-- Replit js -->
<script src="https://replit.com/public/js/replit-
badgev2.js" theme="dark" position="bottom-right">
</script>
</body>
</html>