Skip to contents

Fixed tooltip

Usage

set_tooltip_fixed(
  ax,
  position = c("topLeft", "topRight", "bottomLeft", "bottomRight"),
  offsetX = NULL,
  offsetY = NULL
)

Arguments

ax

An apexchart() htmlwidget object.

position

Predefined position: "topLeft", "topRight", "bottomLeft" or "bottomRight".

offsetX

Sets the left offset for the tooltip container in fixed position.

offsetY

Sets the top offset for the tooltip container in fixed position.

Value

An apexchart() htmlwidget object.

Examples


library(apexcharter)
data("economics", package = "ggplot2")

apex(
  data = tail(economics, 350), 
  mapping = aes(x = date, y = uempmed),
  type = "line"
) %>% 
  set_tooltip_fixed()
30.0030.0025.0025.0020.0020.0015.0015.0010.0010.005.005.000.000.001987198719891989199119911993199319951995199719971999199920012001200320032005200520072007200920092011201120132013
Download SVG
Download PNG
Download CSV