JohnCoene / tippy

💬 Tippy.js for Shiny
http://tippy.john-coene.com/
Other
76 stars 2 forks source link

Place tooltip at specified position? #8

Open hadley opened 4 years ago

hadley commented 4 years ago

In conjunction with plotOutput("plot", hover = clickOpts("hover")), it'd be cool if you could place a tooltip on a plot, using input$hover$coords_img to place it exactly where the mouse is. Is this something that tippy.js supports?

JohnCoene commented 4 years ago

Hi Hadley,

Apologies coming back to you on this so late, life's been a bit hectic lately.

I don't think tippy.js is the right library for this as the trigger has to be a CSS selector. It's an interesting idea, I will see if I can find a solution elsewhere. To the best of my understand David Gohel rebuilt this functionality with d3 for ggiraph.