I am trying to set an icon with FontAwesome instead of text in my D3 nodes. This is the original implmentation, with text:
g.append(\'svg:text\') .attr(\
Just to put in code here what worked for me based on CarlesAndres's answer and mhd's comment:
node.append("text") .attr("style","font-family:FontAwesome;") .attr('font-size', "50px" ) .attr("x", 440) .attr("y", 440) .text(function(d) { return '\uf118' });