Ciao, questo dovrebbe essere abbastanza semplice. Non hanno nemmeno bisogno
di usare data.addRows, basta modificare il DataTable e quindi chiamare
chart.draw(data, options) di nuovo. Se vuoi fare una domanda più specifica
sul tipo di animazione che si desidera (per esempio, se si vuole che il
polling una fonte di dati e aggiornare periodicamente), posso aiutarti
ulteriormente.

On Wed Nov 26 2014 at 11:40:42 AM Luca Pacchiarotti <[email protected]>
wrote:

> Ciao a tutti, sto creando un combo in questo modo:
>
>  <script type="text/javascript" src="https://www.google.com/jsapi";
> ></script>
>     <script type="text/javascript">
>       google.load("visualization", "1", {packages:["corechart"]});
> google.setOnLoadCallback(drawVisualization);
>
> function drawVisualization() {
>   // Some raw data (not necessarily accurate)
>   var data = google.visualization.arrayToDataTable([
>     ['TL', 'Interviste', 'D4', 'D7','Obiettivo'],
>     ['Mottola Andreina', 0,0,0,8],
>     ['Ricupito Emanuele', 0,0,0,8],
>     ['Pagani Marinella', 2,7.50,4.00,8],
>     ['Barisan Donatella', 2,10.00,10.00,8],
>     ['Gemetto Daniela', 3,9.67,9.33,8],
>     ['Bellino Mario', 0,0,0,8]
>   ]);
>
>   var options = {
>     title : 'Sondaggi',
>     vAxis: {title: "Voto"},
>     hAxis: {title: "Gruppi"},
>  animation:{duration: 5000, easing: 'inAndOut'},
>     seriesType: "bars",
>     series: {3:
>  {type: "line",color: 'yellow'},
>  0:
>  {type: "steppedArea"}
>  }
>
>   };
>
>   var chart = new google.visualization.ComboChart(document.getElementById(
> 'chart_div'));
>   chart.draw(data, options);
> }
>     </script>
>
>
>     <div id="chart_div" style="width: 900px; height: 500px;"></div>
>
>
> Ho visto che per fare l'animazione su altri tipi di grafico usate il
> metodo data.addRows. Nel mio caso come potrei implementarlo?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to