I'm using d3 tip box and I want to print a string. However I cannot change lines between my 'index' and 'other information'. Tried already \r, \n, \r\n, but none of them works.
Thanks!
My code is:
// Show additional infomation in the tip
var tip = d3.tip()
.attr('class', 'd3-tip')
.offset([-10, 0])
.html(function(d) { return "index: " + d.index + "other information..."; });
– Danmoreng Jun 03 '16 at 15:15