0

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?

Daniel Levi
  • 117
  • 1
  • 1
  • 6

0 Answers0