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_responsive}
|
|
|
|
\alias{ax_responsive}
|
|
|
|
\title{Responsive options}
|
|
|
|
\usage{
|
|
|
|
ax_responsive(ax, ...)
|
|
|
|
}
|
|
|
|
\arguments{
|
|
|
|
\item{ax}{A \code{apexcharts} \code{htmlwidget} object.}
|
|
|
|
|
2018-09-03 23:52:53 +02:00
|
|
|
\item{...}{Additional parameters.}
|
2018-07-31 22:56:51 +02:00
|
|
|
}
|
|
|
|
\value{
|
|
|
|
A \code{apexcharts} \code{htmlwidget} object.
|
|
|
|
}
|
|
|
|
\description{
|
|
|
|
Responsive options
|
|
|
|
}
|
2018-09-03 23:52:53 +02:00
|
|
|
\note{
|
|
|
|
See \url{https://apexcharts.com/docs/options/responsive/}
|
|
|
|
}
|
2019-06-24 15:18:38 +02:00
|
|
|
\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"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|