Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

rAmCharts (version 1.1.1)

initialize,ChartCursor-method: Initialize a ChartCursor

Description

Initialize a ChartCursor

Usage

## S3 method for class 'ChartCursor':
initialize(.Object, animationDuration = 0.3,
  oneBalloonOnly, valueLineAxis, ...)

chartCursor(animationDuration = 0.3, oneBalloonOnly, valueLineAxis, ...)

setOneBalloonOnly(.Object, oneBalloonOnly)

## S3 method for class 'ChartCursor,logical': setOneBalloonOnly(.Object, oneBalloonOnly)

setValueLineAxis(.Object, valueLineAxis = NULL, ...)

## S3 method for class 'ChartCursor': setValueLineAxis(.Object, valueLineAxis = NULL, ...)

Arguments

.Object
ChartCursor.
animationDuration
Duration of animation of a line, in seconds.
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
list. Properties of Axis of value line. 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.
...
Properties of ChartCursor. See http://docs.amcharts.com/3/javascriptcharts/ChartCursor

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(), title = "Hello !", axisTitleOffset = 12)

Run the code above in your browser using DataLab