# NOT RUN {
# --- method 'initialize'
new("AmGraph", valueField = "value")
# constructor
amGraph(balloonText = "My text")
# }
# NOT RUN {
amGraph(balloonText = "balloonText", "type" = "column", title = "myGraph!",
valueField = "value", animationPlayed = TRUE, other = TRUE)
# }
# NOT RUN {
amGraph(balloonText = "some text")
# --- shortcut constructor
graph(balloonText = "balloonText", "type" = "column",
valueField = "value", animationPlayed = TRUE)
# --- update 'balloonText'
setBalloonText(.Object = amGraph(), balloonText = "performance")
# --- update 'title'
setTitle(.Object = amGraph(), title = "Power")
# --- update 'type'
setType(.Object = amGraph(), type = "type")
# --- update valueField
setValueField(.Object = amGraph(), valueField = "score")
# }
Run the code above in your browser using DataLab