/
index.html
93 lines (79 loc) · 1.52 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
<!DOCTYPE html>
</html>
<meta charset="utf-8">
<style>
body {
background: #fcfcfa;
}
.stroke {
fill: none;
stroke: #000;
stroke-width: 3px;
}
.fill {
fill: #fff;
}
.graticule {
fill: none;
stroke: #777;
stroke-width: .5px;
stroke-opacity: .3;
}
.land {
fill: #2c2c2c;
}
.boundary {
fill: none;
stroke: #fff;
stroke-width: .5px;
}
.symbol {
fill-opacity: .8;
stroke: #fff;
}
.tooltip {
position: absolute;
text-align: center;
width: 120px;
height: 84px;
padding: 8px;
margin-top: -30px;
font: 9px sans-serif;
background: #ddd;
pointer-events: none;
text-align: left;
}
/*added for zoom*/
svg {
background: #fff;
}
.overlay {
fill: none;
pointer-events: all;
}
/*for title and legend*/
html { font-size: 60%; }
.title {
font-size: 2.8rem;
fill: #4F4F4F;
font-weight: 300;
}
.axis path, .axis tick, .axis line {
fill: none;
stroke: none;
}
text {
font-size: 1.2rem;
fill: #4F4F4F;
font-weight: 400;
</style>
<head>
<script src="//d3js.org/d3.v3.min.js"></script>
<script src="//d3js.org/d3.geo.projection.v0.min.js"></script>
<script src="//d3js.org/topojson.v1.min.js"></script>
</head>
<body>
test
<script src="script.js"></script>
<body>
</html>