title: D3.JS - can't transform a selection
body: <p>I have a script which works : </p>
  
  <pre><code>d3.selectAll(".info_Services").attr("transform",  "translate(100, 100)")
  </code></pre>
  
  <p>And another one which doesn't:</p>
  
  <pre><code>d3.selectAll(".info_Services").attr("transform",  function(d){ return "translate("+d.y+", 100)" })
  </code></pre>
  
  <p>Indeed if tells me that <code>d</code> is undefined in the function. I would like to customize the transformation for each of my nodes. Is there something special with "transform"? How would you catch the position of y for each text (info_Services are SVG <code>text</code>s).</p>