D3 Node-tooltip Values Multi-line
var nodeEnter = node.enter().append('g') .attr('class', 'node') .attr('transform', function(d) { return 'translate(' + source.y0 + ',' + source.x0 + ')'; }) .on('click', click) .o
Solution 1:
I can see result
being set in the code you posted, however what we cannot see is where result
is being set to get the content you are 'saying' it contains. That way we could help you interpret the application of these proven recommendations a lot better. But in anycase, have a look at these resources to help you in your quest.
http://bl.ocks.org/mbostock/7555321
How to dynamically display a multiline text in D3.js?
Solution 2:
In the else part add "Amount:"+ count + "\n" while you are concatenating the newline
Post a Comment for "D3 Node-tooltip Values Multi-line"