ax_states | R Documentation |
Charts' states
ax_states(ax, normal = NULL, hover = NULL, active = NULL, ...)
ax |
An |
normal |
A list of parameters. |
hover |
A list of parameters. |
active |
A list of parameters. |
... |
Additional parameters. |
An apexchart()
htmlwidget
object.
See https://apexcharts.com/docs/options/states/
data("mpg", package = "ggplot2")
# Inverse effect on hover
apex(
data = mpg,
mapping = aes(x = manufacturer),
type = "bar"
) %>%
ax_states(
hover = list(
filter = list(
type = "darken"
)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.