Pertinent block of code.
nodeEnter.append("text")
.attr("x", function (d) { return d.children || d._children ? -10 : 10; })
.attr("dy", ".35em")
.attr("text-anchor", function (d) { return d.children || d._children ? "end" : "start"; })
.text(function (d) { return d.ured; })
.style("fill-opacity", 1e-6)
.attr("title", function (d) { return "user: " + d.ured +'BREAK LINE HERE'+ "name: " + d.name; });
The BS tooltip is there but I need to break a line between variables.
I've tried things in the line of
.append("title")
.text(function (d) { return "user: " + d.ured + "\nname: asd"; });
and they do show in different lines but it's not a bootstrap tooltip. I've also played with tspans
according to this but wasn't able to make it work in the tooltip.
Any ideas? Thanks.