-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
152 lines (129 loc) · 4.33 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Baltimore City Crime Data Visualization</title>
<script src="https://d3js.org/d3.v7.min.js"></script>
<link rel="stylesheet" href="style.css" />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<!-- Load Leaflet from CDN -->
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""
/>
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""
></script>
<!-- Load Esri Leaflet from CDN -->
<script
src="https://unpkg.com/[email protected]/dist/esri-leaflet.js"
integrity="sha512-kuYkbOFCV/SsxrpmaCRMEFmqU08n6vc+TfAVlIKjR1BPVgt75pmtU9nbQll+4M9PN2tmZSAgD1kGUCKL88CscA=="
crossorigin=""
></script>
<!-- Load Esri Leaflet Vector from CDN -->
<script
src="https://unpkg.com/[email protected]/dist/esri-leaflet-vector.js"
integrity="sha512-7rLAors9em7cR3/583gZSvu1mxwPBUjWjdFJ000pc4Wpu+fq84lXF1l4dbG4ShiPQ4pSBUTb4e9xaO6xtMZIlA=="
crossorigin=""
></script>
<style>
#map {
height: 550px;
width: 700px;
margin: 0;
left: 40px;
}
.chart-container {
height: 550px;
width: 710px;
}
#info-pane {
position: absolute;
top: 140px;
right: 40px;
z-index: 400;
padding: 0;
background: white;
}
body {
font-family: Arial;
}
footer {
margin-top: 410px;
height: 430px;
width: 100%;
position: relative;
top: 0px;
padding: 3px;
color: black;
}
.navbar {
color: black;
}
</style>
</head>
<nav class="navbar">
<div class="logo" style="color: black">
Visualization Project 6030 : Crimes in Baltimore 2012-2017
</div>
</nav>
<br /><br /><br />
<body id="body" style="background-color: lightgrey">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.1.1/d3.min.js"></script>
<div>
<div id="map"></div>
<br /><br />
<div id="info-pane" class="leaflet-bar chart-container">
<canvas id="chartCanvas"></canvas>
<script src="map.js"></script>
</div>
<div>
<h2>
Here we have the displayed the geojson heat map which showcases the
counties with crimes starting from lowest to highest crimes. The
legend helps identify specific counties with higest and lowest crimes
the help of color hue
</h2>
</div>
<br /><br /><br />
<div position:relative; id="my_dataviz" class="svg-container">
<div width="1000px" height="400px">
<svg id="map" width="450" height="1060" style="float: left"></svg>
<div id="details"></div>
</div>
<div>
<h3>
The following visualization is Line chart which displays the crime
trend from 2012 to 2017. The total crimes, neighborhood names in
that county and the crime trend for the county clicked on the
geojson heatmap has been shown
</h3>
</div>
<div width="1000px" height="400px">
<svg id="line" width="450" height="650" style="float: right"></svg>
</div>
</div>
<script src="script1.js"></script>
</div>
<footer>
<h2><u>Authors</u></h2>
<br />
<h3><b>Bhushan Marathe, Shivam Nahar, Hemanth Reddy Dasari</b></h3>
<h3>Contact Information</h3>
<p><b>CUID:</b> C16217536<br /><b>Mail ID:</b>[email protected]</p>
<br />
<p><b>CUID:</b> C18487863<br /><b>Mail ID:</b>[email protected]</p>
<br />
<p><b>CUID:</b> C1058679<br /><b>Mail ID:</b>[email protected]</p>
<br />
</footer>
</body>
</html>