position in annotations

This commit is contained in:
pvictor 2020-04-28 11:15:33 +02:00
parent 48d4aa0362
commit 6e91a515de
3 changed files with 14 additions and 8 deletions

View File

@ -48,7 +48,7 @@ add_annotation <- function(ax, type_annotation = c("xaxis", "yaxis", "points"),
}
ax <- ax_annotations(
ax = ax,
position = "back",
position = position,
xaxis = annotations
)
} else if (identical(type_annotation, "yaxis")) {
@ -68,7 +68,7 @@ add_annotation <- function(ax, type_annotation = c("xaxis", "yaxis", "points"),
}
ax <- ax_annotations(
ax = ax,
position = "back",
position = position,
points = annotations
)
}

View File

@ -132,9 +132,12 @@ ax_annotations <- function(ax,
#' @param stacked Logical. Enables stacked option for axis charts.
#' @param stackType When stacked, should the stacking be percentage based or normal stacking.
#' Available options: \code{"normal"} or \code{"100\%"}.
#' @param defaultLocale Locale to use : \code{"ca"}, \code{"de"}, \code{"el"}, \code{"en"}, \code{"es"}, \code{"fi"}, \code{"fr"},
#' \code{"hi"}, \code{"hr"}, \code{"hy"}, \code{"id"}, \code{"it"}, \code{"ko"}, \code{"nl"}, \code{"pt-br"},
#' \code{"ru"}, \code{"se"}, \code{"tr"}, \code{"ua"}.
#' @param defaultLocale Locale to use : \code{"ca"}, \code{"cs"}, \code{"de"},
#' \code{"el"}, \code{"en"}, \code{"es"}, \code{"fi"}, \code{"fr"}, \code{"he"},
#' \code{"hi"}, \code{"hr"}, \code{"hy"}, \code{"id"}, \code{"it"}, \code{"ko"},
#' \code{"lt"}, \code{"nb"}, \code{"nl"}, \code{"pl"}, \code{"pt-br"}, \code{"pt"},
#' \code{"ru"}, \code{"se"}, \code{"sk"}, \code{"sl"}, \code{"th"}, \code{"tr"},
#' \code{"ua"}.
#' @param locales Array of custom locales parameters.
#' @param animations A list of parameters.
#' @param background Background color for the chart area. If you want to set background with css, use \code{.apexcharts-canvas} to set it.

View File

@ -38,9 +38,12 @@ ax_chart(
\item{stackType}{When stacked, should the stacking be percentage based or normal stacking.
Available options: \code{"normal"} or \code{"100\%"}.}
\item{defaultLocale}{Locale to use : \code{"ca"}, \code{"de"}, \code{"el"}, \code{"en"}, \code{"es"}, \code{"fi"}, \code{"fr"},
\code{"hi"}, \code{"hr"}, \code{"hy"}, \code{"id"}, \code{"it"}, \code{"ko"}, \code{"nl"}, \code{"pt-br"},
\code{"ru"}, \code{"se"}, \code{"tr"}, \code{"ua"}.}
\item{defaultLocale}{Locale to use : \code{"ca"}, \code{"cs"}, \code{"de"},
\code{"el"}, \code{"en"}, \code{"es"}, \code{"fi"}, \code{"fr"}, \code{"he"},
\code{"hi"}, \code{"hr"}, \code{"hy"}, \code{"id"}, \code{"it"}, \code{"ko"},
\code{"lt"}, \code{"nb"}, \code{"nl"}, \code{"pl"}, \code{"pt-br"}, \code{"pt"},
\code{"ru"}, \code{"se"}, \code{"sk"}, \code{"sl"}, \code{"th"}, \code{"tr"},
\code{"ua"}.}
\item{locales}{Array of custom locales parameters.}