You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/echarty.R
+22-19Lines changed: 22 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,10 @@
25
25
#' Custom widget arguments include: \cr \itemize{
26
26
#' \item elementId - Id of the widget, default is NULL(auto-generated)
27
27
#' \item ask - the \emph{plugjs} parameter when \emph{load} is present, FALSE by default
28
-
#' \item js - single string or a two-strings vector with JavaScript expressions to evaluate. First is evaluated before and second after chart initialization. Chart object 'opts' is exposed for the second script.
28
+
#' \item js - single string or a vector with JavaScript expressions to evaluate.\cr
29
+
#' First expression is evaluated before chart initialization. \cr
30
+
#' Second is evaluated with an exposed object \emph{opts}. \cr
31
+
#' Third is evaluated with an exposed object \emph{chart} after \emph{opts} have been set.
29
32
#' \item renderer - 'canvas'(default) or 'svg'
30
33
#' \item locale - 'EN'(default) or 'ZH' or other, see \href{https://echarts.apache.org/en/api.html#echarts.init}{here}
31
34
#' \item useDirtyRect - enable dirty rectangle rendering or not, FALSE by default, see \href{https://echarts.apache.org/en/api.html#echarts.init}{here}
#' Helper function to address data column(s) by index or name
456
459
#'
457
460
#' @param col A column index(number), column name(string) or a \code{\link[base]{sprintf}} format string.
458
-
#' @param scale A decimal/integer number to multiply the column value by. Only when \emph{col} is a single index.
459
461
#' @param ... Comma separated list of column indexes or names, when \emph{col} is \emph{sprintf}. This allows formatting of multiple columns, as for a tooltip.
462
+
#' @param scale A multiplier (decimal/integer) for column values. Only when \emph{col} is a single column identifier, ignored otherwise.
460
463
#'
461
464
#' @details Column indexes are counted in R and start at 1.\cr
462
465
#' \emph{col} as sprintf supports only two placeholders - %d for column indexes and %s for column names.\cr
0 commit comments