can't draw line in ggplotly with tooltip

None of the geoms use the text aesthetic, take a look at geom_text() or geom_label() for mapping variables to the label aesthetic.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.