apexcharter/man/ax_states.Rd

46 lines
880 B
Plaintext
Raw Normal View History

2018-07-31 22:56:51 +02:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apex-utils.R
\name{ax_states}
\alias{ax_states}
\title{Charts' states}
\usage{
ax_states(ax, normal = NULL, hover = NULL, active = NULL, ...)
}
\arguments{
\item{ax}{An \code{\link[=apexchart]{apexchart()}} \code{htmlwidget} object.}
2018-07-31 22:56:51 +02:00
2018-09-03 23:52:53 +02:00
\item{normal}{A list of parameters.}
2018-07-31 22:56:51 +02:00
2018-09-03 23:52:53 +02:00
\item{hover}{A list of parameters.}
2018-07-31 22:56:51 +02:00
2018-09-03 23:52:53 +02:00
\item{active}{A list of parameters.}
2018-07-31 22:56:51 +02:00
\item{...}{Additional parameters.}
}
\value{
An \code{\link[=apexchart]{apexchart()}} \code{htmlwidget} object.
2018-07-31 22:56:51 +02:00
}
\description{
Charts' states
}
2018-09-03 23:52:53 +02:00
\note{
See \url{https://apexcharts.com/docs/options/states/}
}
2019-06-24 15:18:38 +02:00
\examples{
data("mpg", package = "ggplot2")
# Inverse effect on hover
apex(
2021-01-15 10:53:51 +01:00
data = mpg,
mapping = aes(x = manufacturer),
2019-06-24 15:18:38 +02:00
type = "bar"
) \%>\%
ax_states(
hover = list(
filter = list(
type = "darken"
)
)
)
}