-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Tooltips are not displayed in SVG #453
Comments
Hello! Tooltips are only available with interactive renderers, such as Web (HTML + JS) or Java Swing. When working in Jupyter or Kotlin Notebook, plots are rendered in the output cell. This happens automatically when the plot is the last statement in the cell, or explicitly when you use the If you export a plot as an SVG image, tooltip information is not included, as SVGs are static and lack interactivity. If you're working outside a notebook and want to enable interactive tooltips, you can either save the plot as an HTML (with |
Oh, and tooltips don’t work on GitHub either — JavaScript doesn’t render in notebooks, so raw SVGs are used for rendering. However, tooltips function correctly on interactive notebook platforms like Datalore or NBViewer. For example, here's notebook you mentioned on Datalore. |
Hey, thanks for the quick response. |
It's more of a feature request then a bug. |
Describe the bug
I'm not able to see any hover tooltips in your examples, nor if I try it myself. Since I'm new to Notebooks and this library maybe I'm doing something wrong,, then help would me much appreciated.
Expected behavior
Hovering over a point or bar should show the tooltip
Actual Behavior
Hovering over a point or bar doesn't show the tooltip
Screenshots
Expected:
Current:
https://github.com/Kotlin/kandy/blob/main/examples/notebooks/lets-plot/guides/tooltips.ipynb
Library Version, Tool version, and Environment
(please complete the following information):
Additional information
The text was updated successfully, but these errors were encountered: