ax_states: Charts' states

View source: R/apex-utils.R

ax_statesR Documentation

Charts' states

Description

Charts' states

Usage

ax_states(ax, normal = NULL, hover = NULL, active = NULL, ...)

Arguments

ax

An apexchart() htmlwidget object.

normal

A list of parameters.

hover

A list of parameters.

active

A list of parameters.

...

Additional parameters.

Value

An apexchart() htmlwidget object.

Note

See https://apexcharts.com/docs/options/states/

Examples

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"
      )
    )
  )

apexcharter documentation built on July 9, 2023, 7:55 p.m.