Closed AndreiKingsley closed 1 year ago
Taking in account that mapping y = "b"
is ignored (unless stat=identity), this is likely an expected behavior.
@AndreiKingsley, what were you expecting in the tooltip?
Taking in account that mapping
y = "b"
is ignored (unless stat=identity), this is likely an expected behavior. @AndreiKingsley, what were you expecting in the tooltip?
Column names ("a", "b) on the left side of tooltips, just like for "c".
I see, at first I thought your complain is about tooltip showing "c: a1" instead of "c: b2" :)
Macro '@' substituted with a default title for given aesthetic, which is <empty>
for 'positional' aesthetics x/y.
@OLarionova-HORIS am I correct?
But why is it empty?
Is there any sense in this behavior?
Macro '@' substituted with a default title for given aesthetic, which is
for 'positional' aesthetics x/y. @OLarionova-HORIS am I correct?
Yes, we don't show the default title for positional variables.
But it's possible to specify the title explicitly: .line("title for a|@a").line("title for b|@b")
May be we can invert this situation and for the setting .line("@|@a")
render the tooltip line as
title value
unconditionally?
And let the user to remove the title if necessary using .line("|@a")
?
May be we can invert this situation and for the setting
.line("@|@a")
render the tooltip line astitle value
unconditionally? And let the user to remove the title if necessary using
.line("|@a")
?
Seems great!
So the expected behaviour should be the following:
.line(@|^aesName).line(@|@varName)
=> always "title value"
.line(|^aesName).line(|@varName)
=> always "value"
But what about titles for positionals x/y in the following situations:
layerTooltips( "a", "b" )
Now we use empty titles for them.
without specified tooltips tooltips are set via variable list: layerTooltips( "a", "b" )
I think, in the case of multiline tooltip it's preferable to show title regardless of the kind of the aesthetic.
tooltips are set via variable list: layerTooltips( "a", "b" )
Another way to look at it:
layerTooltips( "a", "b" )
is equivalent to
layerTooltips()
.line("@|@a")
.line("@|@b")
Fixed in LPK v4.4.0
Tooltips for columns that mapped on x and y are displayed incorrectly