Learn R Programming

rAmCharts (version 2.0.2)

initialize,PeriodSelector-method: Initializes a PeriodSelector

Description

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

Usage

"initialize"(.Object, periods, ...)
periodSelector(periods, ...)
addPeriod(.Object, ...)
"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

Run this code
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")

Run the code above in your browser using DataLab