initialize-PeriodSelector: Initializes a PeriodSelector

Description Usage Arguments Value Examples

Description

Uses the constructors to create the object with its properties or update an existing one with the setters.

Usage

1
2
3
4
5
6
7
8
9
## S4 method for signature 'PeriodSelector'
initialize(.Object, periods, ...)

periodSelector(periods, ...)

addPeriod(.Object, ...)

## S4 method for signature 'PeriodSelector'
addPeriod(.Object, ...)

Arguments

.Object

PeriodSelector.

periods

list. Period object has 4 properties - period, count, label and selected. Possible period values are: "ss" - seconds, "mm" - minutes, "hh" - hours, "DD" - days, "MM" - months and "YYYY" - years. property "count" specifies how many periods this button will select. "label" will be displayed on a button and "selected" is a logical. which specifies if this button is selected when chart is initialized or not.

...

other properties of PeriodSelector.

Value

(updated) .Object of class PeriodSelector.

Examples

1
2
3
4
5
new( "PeriodSelector")
periodSelector(fillAlpha = .4, value = 1)
periodSelector(fillAlpha = .4, adjustBorderColor = TRUE, gridThickness = 1)
addPeriod(.Object = periodSelector(), period = "MM", selected = TRUE,
          count = 1, label= "1 month")

Example output

Important changes: constructors legend() and title() have been replaced by amLegend() and amTitle().
For any bug report or feed back see https://github.com/datastorm-open/rAmCharts
~ PeriodSelector ~
list()
~ PeriodSelector ~
$fillAlpha
[1] 0.4

$value
[1] 1

~ PeriodSelector ~
$fillAlpha
[1] 0.4

$adjustBorderColor
[1] TRUE

$gridThickness
[1] 1

~ PeriodSelector ~
$periods
$periods[[1]]
$periods[[1]]$period
[1] "MM"

$periods[[1]]$selected
[1] TRUE

$periods[[1]]$count
[1] 1

$periods[[1]]$label
[1] "1 month"

rAmCharts documentation built on Dec. 6, 2019, 5:11 p.m.