Use these options in ax_plotOptions.

bar_opts(
horizontal = NULL,
endingShape = NULL,
columnWidth = NULL,
barHeight = NULL,
distributed = NULL,
colors = NULL,
dataLabels = NULL,
...
)

## Arguments

horizontal Logical. This option will turn a column chart into a horizontal bar chart. Available Options: "flat" or "rounded". In column charts, columnWidth is the percentage of the available width in the grid-rect. In horizontal bar charts, barHeight is the percentage of the available height in the grid-rect. Logical. Turn this option to make the bars discrete. Each value indicates one bar per series. A list of parameters. List with fields position (available options: "top", "center" or "bottom") Additional parameters.

## Value

A list of options that can be used in ax_plotOptions.

## Examples


library(dplyr)
data("mpg", package = "ggplot2")

apex(count(mpg, manufacturer), aes(manufacturer, n)) %>%
ax_plotOptions(
bar = bar_opts(
endingShape = "rounded",
columnWidth = 100,
distributed = TRUE
)
)