-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
101 lines (88 loc) · 2.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>World Map with D3.js</title>
<style>
/* Add your custom styles here */
h1 {
text-align: center;
margin-top: 20px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
body {
/* height: 100vh; */
font-family: Geneva, Tahoma, sans-serif;
/* background-color: #c8c8cf; */
}
.grid-display {
display: grid;
gap: 10px;
margin-bottom: 50px;
}
#proportional-symbol-map {
grid-row: 1 / 2;
grid-column: 1 / 2;
}
#sankey-chart {
grid-row: 1 / 2;
grid-column: 2 / 2;
}
#region-text-container {
grid-row: 2 / 2;
grid-column: 1 / 2;
font-size: 25px
}
#stacked-bar-chart {
grid-row: 1 / 2;
grid-column: 1 / 3;
}
#bar-chart-legend {
grid-row: 1 / 2;
grid-column: 2 / 3;
}
#pie-chart {
grid-row: 1 / 2;
grid-column: 3 / 3;
}
/* Custom styles for elements in charts */
.left-label {
fill: black; /* Adjust the color as needed */
font-size: 14px; /* Adjust the font size as needed */
}
.right-label {
fill: black; /* Adjust the color as needed */
font-size: 14px; /* Adjust the font size as needed */
}
.incident-point {
fill: red; /* Point color */
}
</style>
<!-- Include D3.js -->
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/holtzy/D3-graph-gallery@master/LIB/sankey.js"></script>
<!-- Include TopoJSON -->
<script src="https://d3js.org/topojson.v3.min.js"></script>
</head>
<body>
<h1>Missing Migrants</h1>
<div class="grid-display">
<svg id="proportional-symbol-map" ></svg>
<div id="region-text-container"></div>
<svg id="sankey-chart" ></svg>
</div>
<div class="grid-display">
<svg id="bar-chart-legend"></svg>
<svg id="stacked-bar-chart"></svg>
<svg id="pie-chart"></svg>
</div>
<!-- Include JavaScript files -->
<script src="scripts/preprocessing.js"></script>
<script src="scripts/stacked-bar-chart.js"></script>
<script src="scripts/pie-chart.js"></script>
<script src="scripts/sankey-chart.js"></script>
<script src="scripts/proportional-symbol-map.js"></script>
<script src="scripts/visualization.js"></script>
</body>
</html>