ax_dataLabels | R Documentation |
Labels on data
ax_dataLabels(
ax,
enabled = NULL,
textAnchor = NULL,
offsetX = NULL,
offsetY = NULL,
style = NULL,
dropShadow = NULL,
formatter = NULL,
...
)
ax |
An |
enabled |
To determine whether to show dataLabels or not. |
textAnchor |
The alignment of text relative to dataLabel's drawing position.
Accepted values |
offsetX |
Sets the left offset for dataLabels. |
offsetY |
Sets the top offset for dataLabels. |
style |
A list of parameters. |
dropShadow |
A list of parameters. |
formatter |
The formatter function takes in a single value and allows you to format the value before displaying |
... |
Additional parameters. |
An apexchart()
htmlwidget
object.
See https://apexcharts.com/docs/options/datalabels/
data("diamonds", package = "ggplot2")
# Add data labels
apex(
data = diamonds,
mapping = aes(x = cut)
) %>%
ax_dataLabels(enabled = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.