I'm looking for a way to use a line break within a tooltip text element using d3.js.
.text("test" + "</br>" + "test")
The above, and other similar efforts, don't seem to work.
There's a thread here that seems to answer it:
https://groups.google.com/forum/?fromgroups=#!topic/d3-js/GgFTf24ltjc
but the solution isn't very clear. How would .html be used in the above situation?
.text(.html("test" + "" + "test"))
didn't work?
Thanks
- population ' + d.population... – PatrickReagan Feb 16 '19 at 21:19