Apple Motion 1.0.1 Manual do Utilizador Página 19

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 41
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 18
2.7 Setting options
Setting the various options of a googleVis objects can be a bit cumbersome at
first. The options follow those of the Google Charts API and can be set via a named
list using the argument options. In the following example we create a line chart
and set various options
5
, see the output in Figure 5.
Figure 5: A line chart with various options set.
R> df <- data.frame(country=c("US", "GB", "BR"),
+ val1=c(1,3,4), val2=c(23,12,32))
R> Line <- gvisLineChart(df, xvar="country", yvar=c("val1","val2"),
+ options=list(
+ title="Hello World",
+ titleTextStyle="{color:'red',
+ fontName:'Courier',
+ fontSize:16}",
+ backgroundColor="#D3D3D3",
+ vAxis="{gridlines:{color:'red', count:3}}",
+ hAxis="{title:'Country', titleTextStyle:{color:'blue'}}",
+ series="[{color:'green', targetAxisIndex: 0},
+ {color: 'orange',targetAxisIndex:1}]",
+ vAxes="[{title:'val1'}, {title:'val2'}]",
+ legend="bottom",
+ curveType="function",
+ width=500,
+ height=300
5
Please refer to the help file of the individual googleVis functions, as the options can vary
from chart to chart.
19
Vista de página 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 40 41

Comentários a estes Manuais

Sem comentários