set_tooltip_fixed | R Documentation |
Fixed tooltip
set_tooltip_fixed(
ax,
position = c("topLeft", "topRight", "bottomLeft", "bottomRight"),
offsetX = NULL,
offsetY = NULL
)
ax |
An |
position |
Predefined position: |
offsetX |
Sets the left offset for the tooltip container in fixed position. |
offsetY |
Sets the top offset for the tooltip container in fixed position. |
An apexchart()
htmlwidget
object.
library(apexcharter)
data("economics", package = "ggplot2")
apex(
data = tail(economics, 350),
mapping = aes(x = date, y = uempmed),
type = "line"
) %>%
set_tooltip_fixed()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.