apexcharter/man/apexchart.Rd

40 lines
915 B
Plaintext
Raw Normal View History

2018-07-30 22:54:39 +02:00
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/apexcharter.R
2019-02-15 22:33:14 +01:00
\name{apexchart}
\alias{apexchart}
2018-07-30 22:54:39 +02:00
\title{Create a apexcharts.js widget}
\usage{
2019-02-15 22:33:14 +01:00
apexchart(ax_opts = list(), auto_update = TRUE, width = NULL,
2018-08-08 10:48:03 +02:00
height = NULL, elementId = NULL)
2018-07-30 22:54:39 +02:00
}
\arguments{
2019-02-15 22:33:14 +01:00
\item{ax_opts}{A \code{list} in JSON format with chart parameters.}
2018-07-30 22:54:39 +02:00
2019-02-15 22:33:14 +01:00
\item{auto_update}{In Shiny application, update existing chart rather than generating new one.}
2018-07-30 22:54:39 +02:00
\item{width}{A numeric input in pixels.}
\item{height}{A numeric input in pixels.}
\item{elementId}{Use an explicit element ID for the widget.}
}
\value{
A \code{apexcharts} \code{htmlwidget} object.
}
\description{
Create a apexcharts.js widget
}
\examples{
library(apexcharter)
2019-02-15 22:33:14 +01:00
apexchart(ax_opts = list(
2018-07-30 22:54:39 +02:00
chart = list(type = "bar"),
series = list(list(
name = "Example",
data = sample(1:100, 5)
)),
xaxis = list(categories = LETTERS[1:5])
))
}