Nothing
#' @title x_axis
#'
#' @description Values must be of type <class 'openpyxl.chart.axis.TextAxis'>
#'
#' @param py_obj py_obj
#' @param ... Additional arguments, i.e. kwargs.
#'
#' @return An openpyxl Python object.
#'
#' @examples
#' \dontrun{
#' BarChart(type = "col") |>
#' x_axis(title = "X axis title")
#' }
#'
#' @export
x_axis <- function(py_obj, ...) {
if(!inherits(py_obj,'python.builtin.object')) {
warning('py_obj is not a python.builtin.object')
}
# as of openpyxl docs, additional arguments ("**kw")
kwargs <- list(...)
for(i in seq_along(kwargs)) {
name <- names(kwargs)[i]
py_obj$x_axis[[name]] <- kwargs[[i]]
}
return(py_obj)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.