-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvis2.html
240 lines (201 loc) · 9.33 KB
/
vis2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Project : Home</title>
<!-- Favicon -->
<link rel="shortcut icon" type="image/icon" href="assets/images/favicon.ico"/>
<!-- Font Awesome -->
<link href="assets/css/font-awesome.css" rel="stylesheet">
<!-- Bootstrap -->
<link href="assets/css/bootstrap.css" rel="stylesheet">
<!-- Slick slider -->
<link rel="stylesheet" type="text/css" href="assets/css/slick.css"/>
<!-- Animate css -->
<link rel="stylesheet" type="text/css" href="assets/css/animate.css"/>
<!-- Theme color -->
<link id="switcher" href="assets/css/theme-color/default.css" rel="stylesheet">
<!-- Range Slider -->
<link rel="stylesheet" id="themeCSS" href="assets/css/classic.css">
<!-- Main Style -->
<link href="assets/css/style.css" rel="stylesheet">
<!--<link href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.min.css" rel="stylesheet" data-semver="3.0.1" data-require="normalize@*" />-->
<style>
svg { background: #f9f9f9; }
.darkback{
background: #f9f9f9;
}
body { font-family: Helvetica; }
#chart_1a_bar .bar,
#chart-1a_bar .bar {
fill: lightblue;
}
#chart_1a_bar .bar:hover,
#chart_1a_bar .bar:hover {
fill: steelblue;
}
#chart_2a_bar .bar,
#chart-2a_bar .bar {
fill: pink;
}
#chart_2a_bar .bar:hover,
#chart_2a_bar .bar:hover {
fill: red;
}
/*#chart_2b_bar .bar,*/
/*#chart-2b_bar .bar {*/
/*fill: pink;*/
/*}*/
/*#chart_2b_bar .bar:hover,*/
/*#chart_2b_bar .bar:hover {*/
/*fill: red;*/
/*}*/
#chart_2b_xlabel {
position: relative;
top: 400px;
left: 340px;
font-size: 12px;
color: #000;
}
text {
fill: #333;
}
.range-container{
width : 720px;
margin : 0 auto;
}
#workout-display {
position: relative;
top: 300px;
/*right: 100px;*/
left: 300px;
display: block;
text-align: left;
/*display: none;*/
}
.act{
font-weight: bold;
color: red;
cursor: pointer;
}
.legend { /* NEW */
font-size: 12px; /* NEW */
} /* NEW */
rect { /* NEW */
stroke-width: 2; /* NEW */
cursor: pointer; /* NEW */
}
rect.disabled { /* NEW */
fill: transparent !important; /* NEW */
}
/* NEW */
#chart_1d_arc{
position: relative;
}
.tooltip1 { /* NEW */
background: #eee; /* NEW */
box-shadow: 0 0 5px #999999; /* NEW */
color: #333; /* NEW */
display: none; /* NEW */
font-size: 12px; /* NEW */
left: 215px; /* NEW */
padding: 10px; /* NEW */
position: absolute; /* NEW */
text-align: center; /* NEW */
top: 250px; /* NEW */
width: 120px; /* NEW */
z-index: 100; /* NEW */
}
label{
position: relative;
top:10px;
right:10px;
}
#slider{
left:30px;
}
</style>
<!-- Fonts -->
<!-- Open Sans for body font -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<!-- Raleway for Title -->
<link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<!-- Pacifico for 404 page -->
<link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- BEGIN PRELOADER -->
<!--<div id="preloader">-->
<!--<div class="loader"> </div>-->
<!--</div>-->
<!-- END PRELOADER -->
<!-- SCROLL TOP BUTTON -->
<a class="scrollToTop" href="#"><i class="fa fa-chevron-up"></i></a>
<!-- END SCROLL TOP BUTTON -->
<section id="call-to-action7">
<div class="container">
<div class="call-to-content wow darkback">
<div id="chart_2c_bar" class="range-container">
<h3>Activities Done for years 2012-2017 vs. The time of the Day</h3>
<h4> Interactions : Buttons, Date Range Slider </h4>
<h4>Adding in a Range Slider to be able to select a particular time range</h4>
<h4>Marathon Training Runs - Morning, Strength Sessions - Nights, Running Sessions - Both Morning/Evening</h4>
<h4>Since moving to NY, Cycling sessions because of Citibike Membership, but mostly Strength Sessions</h4>
<br>
<div class="btn-group pull-right">
<button type="button" class="btn btn-default" id="btn_cumulative">Cumulative</button>
<button type="button" class="btn btn-default" id="btn_strength" style="background-color: #f4cae4">Strength</button>
<button type="button" class="btn btn-default" id="btn_cardio" style="background-color: #fdcdac">Cardio</button>
<button type="button" class="btn btn-default" id="btn_running" style="background-color: #b3e2cd">Running</button>
<button type="button" class="btn btn-default" id="btn_treadmill" style="background-color: #cbd5e8">Treadmill</button>
<button type="button" class="btn btn-default" id="btn_cycling" style="background-color: #e6f5c9">Cycling</button>
</div>
<!--<div id="workout-display">-->
<!--<strong>Activity Type:</strong>-->
<!--<span id="disp_act">Nothing</span>-->
<!--<br>-->
<!--<strong>Calories Burnt:</strong>-->
<!--<span id="disp_cal" class="selected">Nothing</span>-->
<!--</div>-->
</div>
</div>
</div>
</section>
<br><br>
<!-- initialize jQuery Library -->
<script src="assets/js/jquery-1.12.3.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!-- Bootstrap -->
<script src="assets/js/bootstrap.js"></script>
<!-- Slick Slider -->
<script type="text/javascript" src="assets/js/slick.js"></script>
<!-- Counter -->
<script type="text/javascript" src="assets/js/waypoints.js"></script>
<script type="text/javascript" src="assets/js/jquery.counterup.js"></script>
<!-- Wow animation -->
<script type="text/javascript" src="assets/js/wow.js"></script>
<!-- Custom js -->
<script type="text/javascript" src="assets/js/custom.js"></script>
<!--Flip js-->
<script type="text/javascript" src="assets/js/jquery.flip.min.js"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<script src="assets/js/jquery.mousewheel.min.js"></script>
<script src="assets/js/jQAllRangeSliders-min.js"></script>
<!--Putting in the graphs-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.2/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.7.1/d3-tip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-legend/2.13.0/d3-legend.min.js"></script>
<script type="text/javascript" src="assets/visuals/chart_2b_bar.js"></script>
<script type="text/javascript" src="assets/visuals/chart_2c_bar.js"></script>
<script type="text/javascript" src="assets/visuals/chart_5b_line.js"></script>
</body>
</html>