bar_opts | R Documentation |
Use these options in ax_plotOptions()
.
bar_opts(
horizontal = NULL,
endingShape = NULL,
columnWidth = NULL,
barHeight = NULL,
distributed = NULL,
colors = NULL,
dataLabels = NULL,
...
)
horizontal |
Logical. This option will turn a column chart into a horizontal bar chart. |
endingShape |
Available Options: |
columnWidth |
In column charts, columnWidth is the percentage of the available width in the grid-rect. |
barHeight |
In horizontal bar charts, barHeight is the percentage of the available height in the grid-rect. |
distributed |
Logical. Turn this option to make the bars discrete. Each value indicates one bar per series. |
colors |
A list of parameters. |
dataLabels |
List with fields |
... |
Additional parameters. |
A list
of options that can be used in ax_plotOptions()
.
See https://apexcharts.com/docs/options/plotoptions/bar/.
data("mpg", package = "ggplot2")
apex(mpg, aes(manufacturer)) %>%
ax_plotOptions(
bar = bar_opts(
endingShape = "rounded",
columnWidth = 100,
distributed = TRUE
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.