rAmCharts (version 1.1.2)

initialize,ChartCursor-method: Initialize a ChartCursor

Description

Initialize a ChartCursor

Usage

"initialize"(.Object, oneBalloonOnly, valueLineAxis, ...)
chartCursor(animationDuration = 0.3, oneBalloonOnly, valueLineAxis, ...)
setOneBalloonOnly(.Object, oneBalloonOnly)
"setOneBalloonOnly"(.Object, oneBalloonOnly)
setValueLineAxis(.Object, valueLineAxis = NULL, ...)
"setValueLineAxis"(.Object, valueLineAxis = NULL, ...)

Arguments

.Object
ChartCursor.
oneBalloonOnly
logical. If this is set to TRUE, border color instead of background color will be changed when user rolls-over the slice, graph, etc.
valueLineAxis
ValueAxis. If you set valueLineBalloonEnabled to true, but you have more than one axis, you can use this property to indicate which axis should display balloon.
animationDuration
numeric, duration of animation of a line, in seconds.

Value

(updated) .Object of class ChartCursor.

Functions

  • chartCursor:

Examples

Run this code
new("ChartCursor", oneBalloonOnly = TRUE)
chartCursor()
chartCursor(oneBalloonOnly = TRUE)
setOneBalloonOnly(.Object = chartCursor(), oneBalloonOnly = TRUE)
setValueLineAxis(.Object = chartCursor(), id = "valueAxis1",
                 title = "Hello !", axisTitleOffset = 12)
# equivalent to:
valueLineAxis_obj <- valueAxis(id = "valueAxis1", title = "Hello !", axisTitleOffset = 12)
setValueLineAxis(.Object = chartCursor(), valueLineAxis  = valueLineAxis_obj)
# or iff 'valueLineAxis_obj' has already been added to the chart:
setValueLineAxis(.Object = chartCursor(), valueLineAxis  = "valueAxis1")

Run the code above in your browser using DataLab