apexcharter/man/label.Rd

60 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-04-03 15:26:01 +02:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/annotations.R
\name{label}
\alias{label}
\title{Label for annotations}
\usage{
label(
2020-04-03 20:16:26 +02:00
text = NULL,
2020-04-03 15:26:01 +02:00
borderColor = NULL,
borderWidth = NULL,
textAnchor = NULL,
position = NULL,
offsetX = NULL,
offsetY = NULL,
background = NULL,
color = NULL,
fontSize = NULL,
fontWeight = NULL,
fontFamily = NULL,
cssClass = NULL,
2020-04-03 20:16:26 +02:00
padding = c(2, 5, 2, 5)
2020-04-03 15:26:01 +02:00
)
}
\arguments{
2020-04-03 20:16:26 +02:00
\item{text}{Text for the annotation label.}
2020-04-03 15:26:01 +02:00
2020-04-03 20:16:26 +02:00
\item{borderColor}{Border color for the label.}
2020-04-03 15:26:01 +02:00
2020-04-03 20:16:26 +02:00
\item{borderWidth}{Border width for the label.}
2020-04-03 15:26:01 +02:00
2020-04-04 12:36:42 +02:00
\item{textAnchor}{The alignment of text relative to label's drawing position.}
2020-04-03 15:26:01 +02:00
\item{position}{Available options: left or right.}
\item{offsetX}{Sets the left offset for annotation label.}
\item{offsetY}{Sets the top offset for annotation label.}
\item{background}{Background Color for the annotation label.}
\item{color}{ForeColor for the annotation label.}
\item{fontSize}{FontSize for the annotation label.}
\item{fontWeight}{Font-weight for the annotation label.}
\item{fontFamily}{Font-family for the annotation label.}
\item{cssClass}{A custom Css Class to give to the annotation label elements.}
\item{padding}{Padding for the label: top, right, bottom, left.}
}
\value{
A \code{list} that can be used in \code{\link{add_shade}}, \code{\link{add_point}},
\code{\link{add_event}}, \code{\link{add_event_marker}}.
2020-04-03 15:26:01 +02:00
}
\description{
Label for annotations
}