Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (35 sloc) 838 Bytes
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<link type="text/css" rel="stylesheet" href="prettify.css">
<script type="text/javascript" src="prettify.js"></script>
<link type="text/css" rel="stylesheet" href="style.css">
<title></title>
</head>
<body onload="prettyPrint()">
<div id="body">
<pre class="prettyprint">
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;
}
);
}
);
</pre>
</div>
</body>
</html>