2020-04-04 18:38:12 +02:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
% Please edit documentation in R/tooltip.R
|
|
|
|
\name{set_tooltip_fixed}
|
|
|
|
\alias{set_tooltip_fixed}
|
2021-11-17 11:41:10 +01:00
|
|
|
\title{Fixed tooltip}
|
2020-04-04 18:38:12 +02:00
|
|
|
\usage{
|
|
|
|
set_tooltip_fixed(
|
|
|
|
ax,
|
|
|
|
position = c("topLeft", "topRight", "bottomLeft", "bottomRight"),
|
|
|
|
offsetX = NULL,
|
|
|
|
offsetY = NULL
|
|
|
|
)
|
|
|
|
}
|
|
|
|
\arguments{
|
2021-11-17 11:41:10 +01:00
|
|
|
\item{ax}{An \code{\link[=apexchart]{apexchart()}} \code{htmlwidget} object.}
|
2020-04-04 18:38:12 +02:00
|
|
|
|
|
|
|
\item{position}{Predefined position: \code{"topLeft"}, \code{"topRight"},
|
|
|
|
\code{"bottomLeft"} or \code{"bottomRight"}.}
|
|
|
|
|
|
|
|
\item{offsetX}{Sets the left offset for the tooltip container in fixed position.}
|
|
|
|
|
|
|
|
\item{offsetY}{Sets the top offset for the tooltip container in fixed position.}
|
|
|
|
}
|
|
|
|
\value{
|
2021-11-17 11:41:10 +01:00
|
|
|
An \code{\link[=apexchart]{apexchart()}} \code{htmlwidget} object.
|
2020-04-04 18:38:12 +02:00
|
|
|
}
|
|
|
|
\description{
|
2021-11-17 11:41:10 +01:00
|
|
|
Fixed tooltip
|
2020-04-04 18:38:12 +02:00
|
|
|
}
|
|
|
|
\examples{
|
|
|
|
|
|
|
|
library(apexcharter)
|
|
|
|
data("economics", package = "ggplot2")
|
|
|
|
|
|
|
|
apex(
|
|
|
|
data = tail(economics, 350),
|
|
|
|
mapping = aes(x = date, y = uempmed),
|
|
|
|
type = "line"
|
|
|
|
) \%>\%
|
|
|
|
set_tooltip_fixed()
|
|
|
|
}
|