layer Tooltips
Defines the format for displaying the value. The format will be applied to the mapped value in the default tooltip or to the corresponding value specified in the line template.
Examples
val n = 100
val m = 5
val rand = java.util.Random(42)
val data = mapOf("x" to List(n) { rand.nextInt(m) })
letsPlot(data) +
geomBar(
tooltips = layerTooltips().format("@x", "d").title("@x")
.line("count|@..count..")
) { x="x" }
Parameters
Variable names to create a general multiline tooltip with. Useful for specifying the tooltip content quickly, instead of configuring it via the line()
method.
Functions
Specifies a fixed position for the general tooltip.
Consolidates "side" tooltips (if any) to a general tooltip.
Defines the format for displaying the value. The format will be applied to the mapped value in the default tooltip or to the corresponding value specified in the line template.
Specifies the string template to use in the multi-line tooltip.
Specifies a minimum width of a general tooltip in pixels.
Specifies the string template to use as a title in the multi-line tooltip.