Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (33 sloc) 763 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(data){
d3.select("body")
.append("svg")
.selectAll("rect")
.data(data)
.enter()
.append("rect")
.attr("y", function(d,i) {
return i*24;
})
.attr("width", function(d, i) {
return 11*d.count
})
.attr("height", 20)
}
)
</pre>
</div>
</body>
</html>