-
Notifications
You must be signed in to change notification settings - Fork 0
/
vis.html
231 lines (202 loc) · 9.83 KB
/
vis.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ITBA Diplomatura Big Data - Proyecto Final</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/styles.css" />
<link rel="stylesheet" type="text/css" href="css/leaflet.css"/>
<link rel="stylesheet" type="text/css" href="css/MarkerCluster.css" />
<link rel="stylesheet" type="text/css" href="css/MarkerCluster.Default.css" />
</head>
<body>
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">TP Final BigData ITBA 2015/2</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="report.html">Informe</a></li>
<li class="active"><a href="#">Visualización de datos</a></li>
<li><a href="about.html">Acerca de</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Las llamadas al 911 de Bahía Blanca</h1>
</div>
</div>
<div class="row loading">
<div class="col-md-2"></div>
<div class="col-md-8">
<div class="well well-lg"><strong>Cargando visualizaciones...</strong></div>
</div>
<div class="col-md-2"></div>
</div>
<div class="row">
<div class="col-md-8">
<h4 style="display: none;">
Seleccione un año:
<select id="yearSelector">
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
<option selected="selected" value="2016">2016</option>
<option value="all">Todos</option>
</select>
</h4>
</div>
<div class="col-md-4">
<div class="pull-right hidden">
<h4>
Exportar datos filtrados:
<div class="btn-group btn-group-sm" role="group" aria-label="exportOptions">
<button id="exportCsvDataButton" type="button" class="btn btn-info">CSV</button>
<button id="exportTsvDataButton" type="button" class="btn btn-info">TSV</button>
<button id="exportJsonDataButton" type="button" class="btn btn-info">JSON</button>
</div>
</h4>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="alert alert-warning" role="alert" id="alertAllYears" style="display: none;">
<strong>Advertencia: </strong>
<ul>
<li>El mapa debe ser refrescado manualmente</li>
<li>Las visualizaciones podrían funcionar lento dependiendo de las características de la PC debido a la cantidad de datos que se manipulan.</li>
</ul>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="dataCount"></div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div id="eventsVis">
<h4 style="display: none;">
Eventos y cantidad total
<small><a class='reset btn btn-danger btn-xs' href='javascript:eventsVis.filterAll(); dc.redrawAll();' style='display: none;'>limpiar filtro</a></small>
</h4>
</div>
</div>
<div class="col-md-3">
<div id="yearVis">
<h4 style="display: none;">
Eventos por año
<small><a class='reset btn btn-danger btn-xs' href='javascript:yearVis.filterAll(); dc.redrawAll();' style='display: none;'>limpiar filtro</a></small>
</h4>
</div>
</div>
<div class="col-md-3">
<div id="monthsVis">
<h4 style="display: none;">
Eventos por mes
<small><a class='reset btn btn-danger btn-xs' href='javascript:monthsVis.filterAll(); dc.redrawAll();' style='display: none;'>limpiar filtro</a></small>
</h4>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="timeLineVis">
<h4 style="display: none;">
Línea de tiempo (cantidad total de eventos por día)
<span class="glyphicon glyphicon-info-sign" aria-hidden="true" data-toggle="tooltip" data-placement="top" title="Seleccione un rango de tiempo en el gráfico inferior para hacer zoom"></span>
<small>
<span class="reset" style="display: none;">filtro: <span class="filter"></span></span>
</small>
<small>
<a class='reset btn btn-danger btn-xs' href='javascript:timeLineVis.filterAll(); timeLineRangeVis.filterAll(); dc.redrawAll();' style='display: none;'>limpiar filtro</a>
</small>
</h4>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="timeLineRangeVis">
</div>
</div>
</div>
<div class="row" style="height: 575px;">
<div class="col-md-12">
<div id="map" class="map">
<h4 style="display: none;">
Mapa de eventos
<small>
<a id="refreshMapButton" style="display: none;" class='reset btn btn-success btn-xs' href='javascript:mapVis.redraw();'>actualizar mapa</a>
</small>
</h4>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script type="text/javascript" src="js/d3.js"></script>
<script type="text/javascript" src="js/crossfilter.js"></script>
<script type="text/javascript" src="js/dc.js"></script>
<script type="text/javascript" src="js/moment-with-locales.min.js"></script>
<script type="text/javascript" src="js/leaflet.js"></script>
<script type="text/javascript" src="js/leaflet.markercluster.js"></script>
<script type="text/javascript" src="js/dc.leaflet.js"></script>
<script type="text/javascript" src="js/async.js"></script>
<script type="text/javascript" src="js/download.js"></script>
<script type="text/javascript" src="vis.js"></script>
<!-- Modals -->
<div class="modal" id="loadingModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="loadingModalLabel">Cargando</h4>
</div>
<div class="modal-body">
Aguarde un momento, las visualizaciones se están cargando...
</div>
</div>
</div>
</div>
<div class="modal" id="exportingDataModal" tabindex="-1" role="dialog" aria-labelledby="exportingDataModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="exportingDataModalLabel">Descargando</h4>
</div>
<div class="modal-body">
Aguarde un momento, se están preparando los datos para ser descargados ...
</div>
</div>
</div>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-76169068-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>