-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap.html
More file actions
84 lines (76 loc) · 2.26 KB
/
map.html
File metadata and controls
84 lines (76 loc) · 2.26 KB
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
<!-- Code from d3-graph-gallery.com -->
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<!-- Load d3.js -->
<script src="https://d3js.org/d3.v4.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script src="https://d3js.org/d3-geo-projection.v2.min.js"></script>
<style>
body {
width: 1700px;
}
div.tooltip {
position: absolute;
text-align: center;
padding: 2px;
font: 12px sans-serif;
background: lightsteelblue;
border: 0px;
border-radius: 8px;
pointer-events: none;
}
.arc text {
font: 16px sans-serif;
color: white;
text-anchor: middle;
}
.arc path {
stroke: #fff;
}
path {
stroke: steelblue;
stroke-width: 2;
fill: none;
}
.axis path,
.axis line {
fill: none;
stroke: grey;
stroke-width: 1;
shape-rendering: crispEdges;
}
.legend {
font-size: 16px;
font-weight: bold;
text-anchor: middle;
}
</style>
<body>
<div style="display: flex;flex-direction: row;">
<span>Choose Country:</span>
<select name="country" id="country-select">
<option value="Malaysia">Malaysia</option>
<option value="Thailand">Thailand</option>
<option value="Philippines">Philippines</option>
<option value="Singapore">Singapore</option>
<option value="Brunei Darussalam">Brunei Darussalam</option>
</select>
<span style="margin-left: 30px">Year:</span>
<input type="text" id="years" readonly style="border:0; color:#f6931f; width: 90px">
<div id="slider-range" style="width:100px;"></div>
</div>
<!-- Create an element where the map will take place -->
<svg id="d3-map" width="800" height="400"></svg>
<svg id="d3-bubble" width="800" height="400"></svg>
<svg id="d3-stacked" width="800" height="400"></svg>
<svg id="d3-bar1" width="400" height="400"></svg>
<svg id="d3-bar2" width="400" height="400"></svg>
<svg id="d3-pie" width="400" height="400"></svg>
<svg id="d3-line" width="800" height="400"></svg>
</body>
<script src="js/map.js"></script>
</html>