ax_responsive | R Documentation |
Responsive options
ax_responsive(ax, ...)
ax |
An |
... |
Additional parameters. |
An apexchart()
htmlwidget
object.
See https://apexcharts.com/docs/options/responsive/
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"
)
)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.