✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

Newline for multiple hover info text

Hi,

How can I show hoverinfo text in newline if I have multiple text to be displayed?

Thanks
Harprit

3 Likes

Like this: https://codepen.io/etpinard/pen/xrNGJv?editors=0010

5 Likes

Awesome. Yes I wanted this. Thank you so much. I was trying “\n” , that was not working .
worked.

Just want to note that the same trick works in python plotly as well.

2 Likes

For the lazy ones who don’t bother opening a new tab, the answer is: <br />

2 Likes