Learn R Programming

apexcharter (version 0.4.4)

set_tooltip_fixed: Fixed tooltip

Description

Fixed tooltip

Usage

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

Value

An apexchart()

htmlwidget object.

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.

Examples

Run this code

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

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

Run the code above in your browser using DataLab