forked from clemsos/d3-china-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap_template.html
65 lines (58 loc) · 1.29 KB
/
map_template.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
.provinces {
background-color: #fff;
border: 1px solid #ccc;
}
.hk {
position:relative;
left:-750px;
top:0px;
}
/*
.background {
fill: none;
pointer-events: all;
}
.province {
fill: #cde;
stroke: #fff;
stroke-linejoin: round;
stroke-linecap: round;
}
*/
/*#provinces .active, #states .active {
fill: #89a;
}
#cities {
stroke-width: 0;
}
.city {
fill: #345;
stroke: #fff;
}
pre.prettyprint {
border: 1px solid #ccc;
margin-bottom: 0;
padding: 9.5px;
}*/
</style>
</head>
<body>
<div id="map"></div>
<script src="//d3js.org/d3.v3.min.js"></script>
<script src="//d3js.org/queue.v1.min.js"></script>
<script src="//d3js.org/topojson.v1.min.js"></script>
<script>
// MAP setup
var width = 800,
height = 550;
// data goes here
TO_BE_CHANGED
</script>
<script src="d3map.js"></script>
</body>
</html>