ax_colors | R Documentation |
Colors
ax_colors(ax, ...)
ax |
An |
... |
Colors for the chart's series. When all colors are used, it starts from the beginning. |
An apexchart()
htmlwidget
object.
See https://apexcharts.com/docs/options/colors/
data("diamonds", package = "ggplot2")
# Change default color(s)
apex(
data = diamonds,
mapping = aes(x = cut)
) %>%
ax_colors("#F7D358")
library(scales)
apex(
data = diamonds,
mapping = aes(x = cut, fill = color)
) %>%
ax_colors(brewer_pal(palette = "Set2")(7))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.