forked from markmarkoh/datamaps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlabels.html
More file actions
27 lines (24 loc) · 769 Bytes
/
labels.html
File metadata and controls
27 lines (24 loc) · 769 Bytes
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
<!DOCTYPE html>
<html>
<head>
<style>
.active { fill: blue !important;}
</style>
</head>
<body>
<div id="container1" style="border:1px dotted blue; width: 700px; height: 475px; position: relative;"></div>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<script src="http://datamaps.github.io/scripts/datamaps.all.js"></script>
<script>
var election = new Datamap({
scope: 'usa',
element: document.getElementById('container1'),
geographyConfig: {
popupOnHover: false
}
});
election.labels({"fontSize": 10, labelColor: "#222"});
</script>
</body>
</html>