Is there a way to create multiple line title for nodes in "vis.js" library?
I tried a string like "hello \n hi" as title but this does not work.
If I have a super long title, it will get be rendered as one super long line (with or without \n in it)
current effect
You have two options.
In your data obj, for your nodes.
data_obj["title"] = "<pre>1</pre><pre>2</pre>"
Or
data_obj["title"] ="1 </br> 2</br>"
Either will do the job.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With