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!

Ggplotly Hover txt

Hi,
I am trying to fix the hover txt that appears when using ggplotly.

Currently I have this graph code:
g <- ggplot(data = df, aes_string(x = df$Time, y = df$Ct)) + geom_line() +
geom_point(aes(text = paste(“time:”, df$Time)), size = .5)
g <- ggplotly(g)
g

When using this I get the text I want and also a bunch of unnecessary text that I do not want. Does anyone know how to make the hovertxt give me only the text i want.

If anyone cares I figured it out here is the answer:
g <- ggplot(data = df, aes_string(x = df$Time, y = df$Ct)) + geom_line() +
geom_point(aes(text = paste(“time:”, df$Time)), size = .5)
g <- ggplotly(g, tooltip = "text)
g