%useLatestDescriptors
%use lets-plot
val dat = mapOf("x" to 0..1, "y" to 0..1)
val p = letsPlot(dat) +
geomTile(fill = "light-gray", tooltips = layerTooltips().title("Tooltip title").line("label|value")) {
x = "x"
y = "y"
}
p
tooltip
- tooltip rectangle;tooltipText
- text in general tooltip;tooltipTitleText
- tooltip title text;axisTooltipText[X|Y]
- axis tooltip text (inherits from 'tooltipText')p + theme(
tooltip = elementRect(color = "#225e32", fill = "#238b45", size = 2),
tooltipText = elementText(color = "#bae4b3"),
tooltipTitleText = elementText(color = "#edf8e9"),
axisTooltipTextX = elementText(color = "green")
)