Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Multiple text values over hover point

Hello,

I have a scatter plot which gets updated with call back from slider and the dropdown values, but at the moment, I am able to configure only one value to the “text” field of the plot, so that it displays the value upon hovering,

To display multiple values, I am currently doing the following.

text=dff.Country.map(str) + " " +dff.Sales, where Country and Sales are the column headers of my dataframe. Is there is a better way to do this ?

Also following the above methodology would not allow me to display multiple values in individual lines by doing the following. If you can suggest me any work around, that would be great.

text=dff.Country.map(str) + "\n " +dff.Sales,
Cheers,
Vivek

Try using <br/> instead of \n

Hello Chris, Works like a charm. Thank you :slight_smile:

1 Like