-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
185 lines (162 loc) · 9.54 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
<!DOCTYPE HTML>
<html>
<head>
<title>vBikes</title>
<!--Favicon-->
<link rel="apple-touch-icon" sizes="57x57" href="assets/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="assets/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="assets/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="assets/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="assets/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="assets/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="assets/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-16x16.png">
<!--Scripts-->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type = "text/javascript">
google.charts.load('current', {packages: ['corechart']});
</script>
<script src="PapaParse-4.6.0/papaparse.min.js"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="assets/js/d3-tip.js"></script>
<script src="assets/js/colorbrewer.min.js"></script>
<script src="assets/js/myscript.js"></script>
</head>
<body class="is-preload">
<!-- Sidebar -->
<section id="sidebar">
<div class="inner">
<nav>
<ul>
<li><a href="#banner">Welcome</a></li>
<li><a href="#one">Station Popularity</a></li>
<li><a href="#two">Monthly Trends</a></li>
<li><a href="#three">Passholder Breakdown</a></li>
<li><a href="#four">Average Distance</a></li>
<li><a href="#five">Net Change</a></li>
</ul>
</nav>
</div>
</section>
<!-- Page Wrapper -->
<div id="page-wrapper">
<!-- Banner -->
<section id="banner">
<div class="inner">
<h2 style = "text-transform: none">vBikes</h2>
<p>Visualizing Los Angeles Bike share data from July 2016 to March 2017.</p>
<a href="#one" class="special">Learn more</a>
</div>
</section>
<!-- Wrapper -->
<section id="wrapper">
<section id="one" class="wrapper spotlight style1">
<div class="inner">
<div class="content">
<h2 class="major">Most Popular Start and Stop Stations</h2>
<button onclick="displayStartData()">Popularity of Start Stations</button>
<button onclick="displayEndData()">Popularity of End Stations</button>
<p></p>
<div style="text-align: center;"><h3 id = "popularStationText"></h3></div>
<p></p>
<div id="map"></div>
<p></p>
<p>Heatmap displaying the popularity of each starting and ending bike station in LA. See markers for locations of the most popular stations.</p>
</div>
</div>
</section>
<section id="two" class="wrapper alt style2">
<div class="inner">
<h2 class="major">Ridership Change Per Month</h2>
<button onclick="displayNumTrips()" class="button small">Number of Trips Per Month</button>
<button onclick="displayDuration()" class="button small">Average Duration of Trips Per Month (in seconds)</button>
<button onclick="displayMonthly()" class="button small">Monthly Passholders Per Month</button>
<button onclick="displayFlex()" class="button small">Flex Passholders Per Month</button>
<button onclick="displayWalkUp()" class="button small">Walk-Up bikers Per Month</button>
<p></p>
<p></p>
<div style="text-align: center;"><h3 id = "barChartTitle"></h3></div>
<p></p>
<div id="vis"></div>
<p>Bar charts analyzing how ridership changes throughout the year. Hover over a bar to see exact numbers for a specified month.</p>
</div>
</section>
<section id="three" class="wrapper alt spotlight style2">
<div class="inner">
<div class="content">
<h2 class="major">Number of Riders per Pass Type</h2>
<div style="text-align: center;"><i><h3 id = "totalBikers"></h3></i></div>
<div id="pieChart"></div>
<p id = "regRidersDescription"></p>
</div>
</div>
</section>
<section id="four" class="wrapper alt style1">
<div class="inner">
<h2 class="major">Average Distance Traveled</h2>
<h3 style = "text-align:center;" id = "avgSpeed"></h3>
<section class="features">
<article>
<div style="text-align: center;"><h3 class="major">Total One Way Count</h3></div>
<div style="text-align: center;"><i><p id = "numOneWay" style = "font-size: 30px"></p></i></div>
</article>
<article>
<div style="text-align: center;"><h3 class="major">Total Round Trip Count</h3></div>
<div style="text-align: center;"><i><p id = "numRoundTrip" style = "font-size: 30px"></p></i></div>
</article>
<article>
<div style="text-align: center;"><h3 class="major">Average One Way Trip Distance</h3></div>
<div style="text-align: center;"><i><p id = "distOneWayKm" style = "font-size: 30px"></p></i></div>
</article>
<article>
<div style="text-align: center;"><h3 class="major">Average Round Trip Distance</h3></div>
<div style="text-align: center;"><i><p id = "distRoundTripKm" style = "font-size: 30px"></p></i></div>
</article>
</section>
<i><h3 id = "avgCombinedDist" style = "text-align:center;font-size: 30px;"></h3></i>
</div>
</section>
<section id="five" class="wrapper spotlight style3">
<div class="inner">
<div class="content">
<h2 class="major">Net Change in Bikes Per Station</h2>
<p></p>
<select id = "stationSelect" name="stationSelect">
</select>
<div class="chart-wrapper" id="chart-line1"></div>
<p>Multi-Line chart displaying the net change of bike trips per station throughout the course of a day.</p>
</div>
</div>
</section>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC3o57G1olSN-zpVPmq34BfcGqRVBEXZ3M&libraries=places,visualization">
</script>
</section>
<!-- Footer -->
<section id="footer">
<div class="inner">
<ul class="copyright">
<li>© Edwin Yu. All rights reserved.</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>
</section>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>