apexcharter/man/radialBar_opts.Rd

76 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2018-08-03 11:10:36 +02:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apex-options.R
2019-02-17 22:07:04 +01:00
\name{radialBar_opts}
\alias{radialBar_opts}
2018-08-03 11:10:36 +02:00
\title{Radial bar options}
\usage{
2019-11-26 10:17:42 +01:00
radialBar_opts(
size = NULL,
inverseOrder = NULL,
startAngle = NULL,
endAngle = NULL,
offsetX = NULL,
offsetY = NULL,
hollow = NULL,
track = NULL,
dataLabels = NULL,
...
)
2018-08-03 11:10:36 +02:00
}
\arguments{
\item{size}{Numeric. Manual size of the radialBars instead of calculating automatically from default height / width.}
\item{inverseOrder}{Logical. Whether to make the first value of series innermost or outermost.}
\item{startAngle}{Numeric. Angle from which the radialBars should start.}
\item{endAngle}{Numeric. Angle to which the radialBars should end. The sum of the startAngle and endAngle should not exceed 360.}
\item{offsetX}{Numeric. Sets the left offset for radialBars.}
\item{offsetY}{Numeric. Sets the top offset for radialBars.}
\item{hollow}{List.}
\item{track}{List.}
\item{dataLabels}{List.}
\item{...}{Additional parameters.}
}
2019-07-24 12:20:22 +02:00
\value{
2023-02-22 10:45:29 +01:00
A \code{list} of options that can be used in \code{\link[=ax_plotOptions]{ax_plotOptions()}}.
2019-07-24 12:20:22 +02:00
}
2018-08-03 11:10:36 +02:00
\description{
2023-02-22 10:45:29 +01:00
Use these options in \code{\link[=ax_plotOptions]{ax_plotOptions()}}.
2018-08-03 11:10:36 +02:00
}
\note{
See \url{https://apexcharts.com/docs/options/plotoptions/radialbar/}.
}
2019-06-24 15:18:38 +02:00
\examples{
apexchart() \%>\%
ax_chart(type = "radialBar") \%>\%
ax_plotOptions(
radialBar = radialBar_opts(
startAngle = -135,
endAngle = 135,
dataLabels = list(
name = list(
fontSize = "16px",
# color = undefined,
offsetY = 120
),
value = list(
offsetY = 76,
fontSize = "22px",
# color = undefined,
formatter = htmlwidgets::JS("function (val) {return val + '\%';}")
)
)
)
) \%>\%
ax_stroke(dashArray = 4) \%>\%
ax_series(70) \%>\%
ax_labels("Indicator")
}