rAmCharts (version 2.1.15)

initialize,StockEvent-method: Initialize a StockEvent

Description

Use the constructor to create the object or update an existing one with the setters.

Usage

# S4 method for StockEvent
initialize(.Object, backgroundAlpha = 1, stockGraph, ...)

stockEvent(backgroundAlpha = 1, stockGraph, ...)

setStockGraph(.Object, stockGraph = NULL, ...)

# S4 method for StockEvent,AmGraphOrCharacterOrMissing setStockGraph(.Object, stockGraph = NULL, ...)

Value

(updated) argument .Object of class StockEvent.

Arguments

.Object

StockEvent.

backgroundAlpha

numeric.

stockGraph

AmGraph created with stockGraph(*). This is the graph on which event will be displayed. You can use a reference to the stock graph object or id of the graph.

...

other properties of StockEvent.

Examples

Run this code
new("StockEvent")
stockEvent()
setStockGraph(.Object = stockEvent(), id = "stockGraph1", balloonText = "balloonText")
# equivalent to:
stockGraph_obj <- stockGraph(id = "stockGraph1", balloonText = "balloonText")
setStockGraph(.Object = stockEvent(), stockGraph = stockGraph_obj)
# if stockGraph_obj has already been added to the chart:
setStockGraph(.Object = stockEvent(), stockGraph = "stockGraph1")

Run the code above in your browser using DataLab