Add a label with multiple lines of text:
canvas.edgelayout('individual') canvas.nodes([1, 2]).add() canvas.edge([1, 2]).add({ length: 120, labels: { 0: { text: 'This is a label\nwith multiple\nlines of text' }} })