ax_responsive: Responsive options

View source: R/apex-utils.R

ax_responsiveR Documentation

Responsive options

Description

Responsive options

Usage

ax_responsive(ax, ...)

Arguments

ax

An apexchart() htmlwidget object.

...

Additional parameters.

Value

An apexchart() htmlwidget object.

Note

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

Examples

data("mpg", package = "ggplot2")

# Open in browser and resize window
apex(
  data = mpg,
  mapping = aes(x = manufacturer, fill = year),
  type = "bar"
) %>% 
  ax_legend(position = "right") %>% 
  ax_responsive(
    list(
      breakpoint = 1000,
      options = list(
        plotOptions = list(
          bar = list(
            horizontal = FALSE
          )
        ),
        legend = list(
          position = "bottom"
        )
      )
    )
  )

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