[BUG] Tooltips are not displayed in SVG
- Dominant language
- Kotlin
- Stars
- 744
- Forks
- 27
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 1
Description
## **Describe the bug**
I'm not able to see any hover tooltips in your [examples](https://github.com/Kotlin/kandy/blob/main/examples/notebooks/lets-plot/guides/tooltips.ipynb), 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.
```
val time = listOf("2021", "2022", "2023", "2024")
val accesses = listOf(150, 200, 175, 250)
val dataFrame = dataFrameOf(
"pointInTime" to time,
"numberOfAccesses" to accesses
)
return dataFrame.plot {
bars {
x("pointInTime")
y("numberOfAccesses")
tooltips{
line("${value("numberOfAccesses")}")
}
}
}.toSVG()
```
## **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):
- Library version: 0.7.0
- Kotlin-Gradle environment: kotlin 2.0.21
- Tried in Chrome: 131.0.6778.86 and Firefox: 133
## **Additional information**
Contributor guide
Research direction
Reproduce the report using examples/notebooks/lets-plot/guides/tooltips.ipynb and the supplied Kotlin plot ending in toSVG(). First compare the notebook's rendered SVG with the expected tooltip behavior in Chrome or Firefox. Done means hovering a point or bar displays the configured numberOfAccesses tooltip.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, kotlin
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100