pie_opts | R Documentation |
Use these options in ax_plotOptions()
.
pie_opts(
size = NULL,
donut = NULL,
customScale = NULL,
offsetX = NULL,
offsetY = NULL,
dataLabels = NULL,
...
)
size |
Numeric. Custom size of the pie which will override the default size calculations. |
donut |
List with two fields |
customScale |
Numeric. Transform the scale of whole pie/donut overriding the default calculations. |
offsetX |
Numeric. Sets the left offset of the whole pie area. |
offsetY |
Numeric. Sets the top offset of the whole pie area. |
dataLabels |
List with field |
... |
Additional parameters. |
A list
of options that can be used in ax_plotOptions()
.
See https://apexcharts.com/docs/options/plotoptions/pie/.
data("mpg", package = "ggplot2")
apex(mpg, aes(cyl), type = "donut") %>%
ax_plotOptions(
pie = pie_opts(
donut = list(size = "90%", background = "#BABABA")
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.