apexcharter/man/ax_responsive.Rd

50 lines
981 B
R

% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apex-utils.R
\name{ax_responsive}
\alias{ax_responsive}
\title{Responsive options}
\usage{
ax_responsive(ax, ...)
}
\arguments{
\item{ax}{A \code{apexcharts} \code{htmlwidget} object.}
\item{...}{Additional parameters.}
}
\value{
A \code{apexcharts} \code{htmlwidget} object.
}
\description{
Responsive options
}
\note{
See \url{https://apexcharts.com/docs/options/responsive/}
}
\examples{
library(dplyr)
data("mpg", package = "ggplot2")
# Open in browser and resize window
apex(
data = count(mpg, manufacturer, year),
mapping = aes(x = manufacturer, y = n, 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"
)
)
)
)
}