D3NutsAndBolts1

by Simon Raper

HTML

<p>The earthman</p>
<p>Dare!</p>
<p>In the flesh</p>

JavaScript

fontSize = [20, 40, 80]

d3.selectAll("p").data(fontSize).style("font-size", function(d) {return d+"px"});