2018-07-31 22:56:51 +02:00
|
|
|
% Generated by roxygen2: do not edit by hand
|
|
|
|
% Please edit documentation in R/apex-utils.R
|
|
|
|
\name{ax_labels}
|
|
|
|
\alias{ax_labels}
|
2018-11-06 09:04:16 +01:00
|
|
|
\alias{ax_labels2}
|
2018-07-31 22:56:51 +02:00
|
|
|
\title{Alternative axis labels}
|
|
|
|
\usage{
|
|
|
|
ax_labels(ax, ...)
|
2018-11-06 09:04:16 +01:00
|
|
|
|
|
|
|
ax_labels2(ax, labels)
|
2018-07-31 22:56:51 +02:00
|
|
|
}
|
|
|
|
\arguments{
|
2021-11-17 11:41:10 +01:00
|
|
|
\item{ax}{An \code{\link[=apexchart]{apexchart()}} \code{htmlwidget} object.}
|
2018-07-31 22:56:51 +02:00
|
|
|
|
2018-07-31 23:24:35 +02:00
|
|
|
\item{...}{Vector. In Axis Charts (line / column), labels can be set instead of setting xaxis categories
|
|
|
|
option. While, in pie/donut charts, each label corresponds to value in series array.}
|
2018-11-06 09:04:16 +01:00
|
|
|
|
|
|
|
\item{labels}{A vector to use as labels.}
|
2018-07-31 22:56:51 +02:00
|
|
|
}
|
|
|
|
\value{
|
2021-11-17 11:41:10 +01:00
|
|
|
An \code{\link[=apexchart]{apexchart()}} \code{htmlwidget} object.
|
2018-07-31 22:56:51 +02:00
|
|
|
}
|
|
|
|
\description{
|
|
|
|
Alternative axis labels
|
|
|
|
}
|
2018-09-03 23:52:53 +02:00
|
|
|
\note{
|
|
|
|
See \url{https://apexcharts.com/docs/options/labels/}
|
|
|
|
}
|
2019-06-24 15:18:38 +02:00
|
|
|
\examples{
|
|
|
|
apexchart() \%>\%
|
|
|
|
ax_chart(type = "pie") \%>\%
|
|
|
|
ax_series(23, 45, 56) \%>\%
|
|
|
|
ax_labels("A", "B", "C")
|
|
|
|
|
|
|
|
# same as
|
|
|
|
apexchart() \%>\%
|
|
|
|
ax_chart(type = "pie") \%>\%
|
|
|
|
ax_series2(c(23, 45, 56)) \%>\%
|
|
|
|
ax_labels2(c("A", "B", "C"))
|
|
|
|
}
|