User:Themsen/Protclass7

From XPUB & Lens-Based wiki
< User:Themsen
Revision as of 19:20, 28 April 2015 by Themsen (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

words.html

<meta charset="utf-8" /> <script src="d3.min.js"></script> <body>

</body> <script>

d3.json("words2.json", function (data) { console.log("loaded", data); d3.select("#content") .selectAll("span") .data(data) .enter() .append("span") .text(function(d) { return d.word + " " }) .style("font-size", function(d) { return d.count })

})

</script>