Several things needed to be changed to make your example work. See my changes here: http://jsfiddle.net/dlaliberte/nnw99/4/
Mainly, you have to use setValue(), as you suspected, on the data table, and then don't recreate the chart each time but just draw() it. Also, if you want animation, you have to include the 'animation' option. On Tue, Feb 18, 2014 at 5:42 AM, <[email protected]> wrote: > > Hi everyone, > > I'm new using Google Chart API. > Please, have a look to my jsfiddle: http://jsfiddle.net/Y7y9x/ > > Use the text box to change Dexter's values as you can see the animation > during the transaction doesn't work. I believe that is because of reloading > the chart everytime my array changed. Should i use setValue? if so, how can > i implement that using stacked bars? > > Every suggestion are welcome. > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "Google Chart 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-chart-api. > For more options, visit https://groups.google.com/groups/opt_out. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- You received this message because you are subscribed to the Google Groups "Google Chart 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-chart-api. For more options, visit https://groups.google.com/groups/opt_out.
