Apple Motion 1.0.1 Manual de usuario Pagina 6

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 41
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 5
18 ['Apples',new Date(1988,0,1),1000,300,'East'],
19 ['Oranges',new Date(1988,0,1),1150,200,'West'],
20 ['Bananas',new Date(1988,0,1),300,250,'West'],
21 ['Apples',new Date(1989,6,1),1200,400,'East'],
22 ['Oranges',new Date(1989,6,1),750,150,'West'],
23 ['Bananas',new Date(1989,6,1),788,617,'West']
24 ]);
25 var chart=new google.visualization.MotionChart(
26 document.getElementById('chart_div'));
27 chart.draw(data, {width: 600, height:300});
28 }
29 </script>
30 </head>
31 <body>
32 <div id="chart_div"
33 style="width:600px; height:300px;">
34 </div>
35 </body>
36 </html>
The code and data are processed and rendered by the browser and is not submitted
to any server
1
.
You will notice that the above html code has five generic parts
2
:
references to Google’s AJAX (l. 4) and Visualisation API (ll. 7 8),
data to visualise as a DataTable (ll. 11 24),
an instance call to create the chart (ll. 25 26),
a method call to draw the chart including options, shown here as width and
height (l. 27),
an HTML <div> element to add the chart to the page (ll. 32 34).
These principles hold true for most of the interactive charts of the Google Chart
Tools, see the examples in Figure 2.
However, before you use the API you should read the Google Terms of Service [Inc12a].
2 The googleVis package
The googleVis package provides an interface between R and the Google Chart
Tools. The functions of the package allow t he user to visualise data stored in R
1
https://google-developers.appspot.com/chart/interactive/docs/gallery/
motionchart.html#Data_Policy
2
For more details see https://google-developers.appspot.com/chart/interactive/docs/
index
6
Vista de pagina 5
1 2 3 4 5 6 7 8 9 10 11 ... 40 41

Comentarios a estos manuales

Sin comentarios