cjsSeries: Add a series to a chart

Description Usage Arguments Methods (by class)

Description

Use this function to add a series to a chart.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cjsSeries(cjs, data, type, label, scale)

## S3 method for class 'cjs_bar'
cjsSeries(cjs, data, type = "bar", label = NULL,
  scale = NULL)

## S3 method for class 'cjs_line'
cjsSeries(cjs, data, type = "line", label = NULL,
  scale = NULL)

## S3 method for class 'cjs_horizontalBar'
cjsSeries(cjs, data, type = "horizontalBar",
  label = NULL, scale = NULL)

## S3 method for class 'cjs_radar'
cjsSeries(cjs, data, type = NULL, label = NULL,
  scale = NULL)

## S3 method for class 'cjs_pie'
cjsSeries(cjs, data, type = NULL, label = NULL,
  scale = NULL)

## S3 method for class 'cjs_polarArea'
cjsSeries(cjs, data, type = NULL, label = NULL,
  scale = NULL)

Arguments

cjs

a chartjs object

data

a vector of data

type

a character or NULL, the representation of the data,

label

a character, the name of the series

scale

an integer, the numeric position of the scale to attach the series to

color

an optional list of colours, see colortypes

palette

an optional RColorBrewer palette, defaults to Paired, see display.brewer.all

Methods (by class)


Tutuchan/chartjs documentation built on May 9, 2019, 5:16 p.m.