-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (39 loc) · 1.48 KB
/
index.html
File metadata and controls
39 lines (39 loc) · 1.48 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Example Activity Map</title>
<link rel="stylesheet" type="text/css" href="activitymap.min.css"/>
</head>
<body>
<div id="activitymap-container" style="width: 850px; height: 350px;"></div>
</br>
<div id="activitymap-container-fit"></div>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script type="text/javascript" src="activitymap.min.js"></script>
<script>
d3.csv("dji.csv", function(data) {
var activityMap = new ActivityMap(data, {
"id": "dji-volume-map",
"parent": "#activitymap-container",
"title": "Dow Jones Index - Trading Volume ",
"timeColumn": "Timestamp",
"valueColumn": "Volume",
"hue": 200
});
activityMap.render();
});
d3.csv("dji.csv", function(data) {
var activityMapFit = new ActivityMap(data, {
"id": "dji-volume-map",
"parent": "#activitymap-container-fit",
"title": "Dow Jones Index - Trading Volume ",
"timeColumn": "Timestamp",
"valueColumn": "Volume",
"fit": true,
"compact": false
});
activityMapFit.render();
});
</script>
</body>
</html>