The following code is used to show the text labels of a javascript tree diagram.
nodeEnter.append("svg:text")
.attr("x", function(d) { return d._children ? -8 : -48; }) /*the position of the text (left to right)*/
.attr("y", 3) /*the position of the text (Up and Down)*/
.text(function(d) { return d.name; });
This uses svg, which has no word wrapping ability. How do I change this do a normal paragraph
so that I may use css to word wrap it. How do I make this regular text and not svg text?
See Question&Answers more detail:os