-
Notifications
You must be signed in to change notification settings - Fork 0
/
povertymap.html
53 lines (40 loc) · 1.65 KB
/
povertymap.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,600,700,900,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="css/urban-text.css">
<link rel="stylesheet" type="text/css" href="css/maps.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
</head>
<body>
<div id="legend"><img src="img/legend.png" alt="Legend for map - breaks every 5%" /></div>
<h4 class="title">Estimated poverty rates</h4>
<div id="map" class="map"><img src="img/estimate.png" alt="Map of poverty rates by county" />
</div>
<script src="lib/jquery.min.js"></script>
<script src="lib/bootstrap.min.js"></script>
<script src="lib/d3.min.js" charset="utf-8"></script>
<script src="lib/modernizr.svg.min.js"></script>
<script src="lib/topojson.v1.min.js"></script>
<script src="lib/pym.min.js"></script>
<script src="js/povertymap.js"></script>
<script>
$(window).load(function () {
if (Modernizr.svg) {
d3.json(json_url, function (json) {
us = json;
pymChild = new pym.Child({
renderCallback: estimatemap
});
});
} else {
pymChild = new pym.Child({});
}
});
var pymChild = new pym.Child();
</script>
</body>
</html>