Example is from d3js.org.
d3.selectAll("p")
.data([4, 8, 15, 16, 23, 42])
.style("font-size", function(d) { return d + "px"; });
Please elaborate on the syntax being used .data and .style. Why is it written this way? What does it refer to?
Example is from d3js.org.
d3.selectAll("p")
.data([4, 8, 15, 16, 23, 42])
.style("font-size", function(d) { return d + "px"; });
Please elaborate on the syntax being used .data and .style. Why is it written this way? What does it refer to?