JetBrains / lets-plot-kotlin

Grammar of Graphics for Kotlin
https://lets-plot.org/kotlin/
MIT License
435 stars 36 forks source link

How to hide only main tooltip (not side one)? #232

Closed AndreiKingsley closed 6 months ago

AndreiKingsley commented 8 months ago

For example, here, I want to hide main tooltips, anв still have the sides:

image
alshan commented 8 months ago

Try tooltips = layerTooltips(*emptyArray())

AndreiKingsley commented 8 months ago
image

Doesn't work

OLarionova-HORIS commented 8 months ago

The point is to hide the main tooltip but keep the axis tooltip, right?
Unfortunately, there is no such mechanism in the current version.

By the way, disableSplitting() does not affect axis tooltips. It moves "side tooltips" to the main tooltip, and by "side tooltips" we mean positional tooltips such as boxplot has.

AndreiKingsley commented 8 months ago

OK, but I think that would be a useful feature

OLarionova-HORIS commented 6 months ago

The next release will add the ability to hide the general tooltip (without hiding the axis tooltips) using theme(tooltip = "blank"). Commit: https://github.com/JetBrains/lets-plot/commit/020b1e36edce3642a0b2554b7660ef47613caf89

OLarionova-HORIS commented 6 months ago

Fixed in LPK v4.7.0