Learn R Programming

apexcharter (version 0.4.4)

ax-series: Add data to a chart

Description

Add data to a chart

Usage

ax_series(ax, ...)

ax_series2(ax, l)

Value

An apexchart()

htmlwidget object.

Arguments

ax

An apexchart() htmlwidget object.

...

Lists containing data to plot, typically list with two items: name and data.

l

A list.

Examples

Run this code

# One serie
apexchart() %>% 
  ax_series(list(
    name = "rnorm",
    data = rnorm(10)
  ))

# Two series
apexchart() %>% 
  ax_series(
    list(
      name = "rnorm 1",
      data = rnorm(10)
    ),
    list(
      name = "rnorm 2",
      data = rnorm(10)
    )
  )

Run the code above in your browser using DataLab