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}{A \code{apexcharts} \code{htmlwidget} object.}
|
|
|
|
|
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{
|
|
|
|
A \code{apexcharts} \code{htmlwidget} object.
|
|
|
|
}
|
|
|
|
\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{
|
|
|
|
library(dplyr)
|
|
|
|
data("mpg", package = "ggplot2")
|
|
|
|
|
|
|
|
# Inverse effect on hover
|
|
|
|
apex(
|
|
|
|
data = count(mpg, manufacturer),
|
|
|
|
mapping = aes(x = manufacturer, y = n),
|
|
|
|
type = "bar"
|
|
|
|
) \%>\%
|
|
|
|
ax_states(
|
|
|
|
hover = list(
|
|
|
|
filter = list(
|
|
|
|
type = "darken"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|