-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathtest.html
More file actions
29 lines (29 loc) · 702 Bytes
/
test.html
File metadata and controls
29 lines (29 loc) · 702 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
28
29
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
</head>
<body>
<script>
d3.json(
"http://localhost:8000/data/num_topics.json",
function(num_topics){
d3.select("body")
.append("ul")
.selectAll("li")
.data(num_topics)
.enter()
.append("li")
.text(
function(d){
var msg = d.count;
msg += " people specify ";
msg += d.num_topics;
msg += " topics";
return msg;
}
);
}
);
</script>
</body>
</html>