initialize-AmLegend: Initializes legend of the chart

Description Usage Arguments Examples

Description

Constructor for an AmLegend.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S4 method for signature 'AmLegend'
initialize(.Object, useGraphSettings, ...)

amLegend(useGraphSettings, ...)

legend(useGraphSettings, ...)

setUseGraphSettings(.Object, useGraphSettings)

## S4 method for signature 'AmLegend,logical'
setUseGraphSettings(.Object, useGraphSettings)

Arguments

.Object

AmLegend.

useGraphSettings

logical, if TRUE, border color will be changed when user rolls-over the slice, graph, etc, instead of background color.

...

Other properties of AmLegend. See http://docs.amcharts.com/3/javascriptstockchart/AmLegend.

Examples

1
2
3
4
new("AmLegend", useGraphSettings = TRUE)
amLegend(useGraphSettings = FALSE)
rAmCharts:::legend(useGraphSettings = FALSE)
setUseGraphSettings(.Object = amLegend(), useGraphSettings = TRUE)

Example output

Important changes: constructors legend() and title() have been replaced by amLegend() and amTitle().
For any bug report or feed back see https://github.com/datastorm-open/rAmCharts
~ AmLegend ~
$useGraphSettings
[1] TRUE

~ AmLegend ~
$useGraphSettings
[1] FALSE

~ AmLegend ~
$useGraphSettings
[1] FALSE

~ AmLegend ~
$useGraphSettings
[1] TRUE

rAmCharts documentation built on Dec. 6, 2019, 5:11 p.m.