rAmCharts (version 1.1.2)

initialize,AmGraph-method: Initialize an AmGraph

Description

To create an AmGraph, you can use the usual methode Initialize or the constructor. You can update properties with setters.

Constructor

Constructor (shortcut)

Setter for balloonText.

Setter for title.

Setter for type.

Setter for valueField

Usage

"initialize"(.Object, animationPlayed = FALSE, balloonText, title, type, valueField, ...)
amGraph(animationPlayed = FALSE, balloonText, title, type, valueField, ...)
graph(animationPlayed = FALSE, balloonText, title, type, valueField, ...)
setBalloonText(.Object, balloonText)
"setBalloonText"(.Object, balloonText)
"setTitle"(.Object, title)
"setType"(.Object, type)
setValueField(.Object, valueField)
"setValueField"(.Object, valueField)

Arguments

.Object
AmGraph.
animationPlayed
logical.
balloonText
character. Balloon text. You can use tags like [[value]], [[description]], [[percents]], [[open]], [[category]] or any other field name from your data provider. HTML tags can also be used.
title
character. Graph title.
type
character. Type of the graph. Possible values are: "line", "column", "step", "smoothedLine", "candlestick", "ohlc". XY and Radar charts can only display "line" otherArguments graphs.
valueField
character. Name of the value field in your dataProvider.
...
Other properties.

Value

An object of class AmGraph with the properties given.

Functions

  • amGraph:
  • graph:

Examples

Run this code
new("AmGraph", valueField = "value")
amGraph(balloonText = "balloonText", "type" = "column",
        valueField = "value", animationPlayed = TRUE)
graph(balloonText = "balloonText", "type" = "column",
      valueField = "value", animationPlayed = TRUE)
setBalloonText(.Object = amGraph(), balloonText = "performance")
setTitle(.Object = amGraph(), title = "Power")
setType(.Object = amGraph(), type = "type")
setValueField(.Object = amGraph(), valueField = "score")

Run the code above in your browser using DataCamp Workspace