-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (45 loc) · 1.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./style.css">
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/3.0.2/topojson.min.js"
integrity="sha256-tHoAPGoNdhIR28YHl9DWLzeRfdwigkH7OCBXMrHXhoM=" crossorigin="anonymous"></script>
<title>Choropleth Map</title>
</head>
<body>
<h2 id='title'>United States adult learning and education (ALE)</h2>
<div id='container'>
<svg id='canvas'>
</svg>
<div id='rightSide'>
<div id='tooltip'>
</div>
<svg id='legend'>
<g>
<rect x="10" y="0" width="40" height="40" fill="tomato"></rect>
<text x="60" y="20" fill="white">Less than 15%</text>
</g>
<g>
<rect x="10" y="40" width="40" height="40" fill="orange"></rect>
<text x="60" y="60" fill="white">15% than 30%</text>
</g>
<g>
<rect x="10" y="80" width="40" height="40" fill="lightgreen"></rect>
<text x="60" y="100" fill="white">30% to 45%</text>
</g>
<g>
<rect x="10" y="120" width="40" height="40" fill="limegreen"></rect>
<text x="60" y="140" fill="white">More than 45%</text>
</g>
</svg>
<div id='description'>Percentage of adults age 25 and older with a bachelor's degree or higher (2010-2014).
Source: <a href='https://www.ers.usda.gov/data-products/county-level-data-sets/download-data.aspx'>USDA
Economic Research Service</a></div>
</div>
</div>
</body>
<script defer type="module" src='script.js'></script>
</html>