animint2 icon indicating copy to clipboard operation
animint2 copied to clipboard

geom_text(aes(tooltip)) does not work

Open tdhock opened this issue 1 year ago • 3 comments

because tooltips are currently implemented by adding

elements inside the svg element, but the JS <code>.text</code> method is removing the <title> element and replacing with the aes(label) value. we could conceivably get it to work by making html like <text>label text<title>tooltip text but even better is if we could implement a new tooltip library with more rapid/obvious tooltips that show up.

tdhock avatar Jan 19 '25 20:01 tdhock

Tippy.js can be used for this......can I work on it?

suhaani-agarwal avatar Mar 16 '25 13:03 suhaani-agarwal

great idea, please go ahead

tdhock avatar Mar 17 '25 05:03 tdhock

in your pr make sure to remove the existing tooltip implementation via

elements, so the new implementation works with all geoms.

tdhock avatar Mar 17 '25 05:03 tdhock