Thanks you just saved me. I had the width value set but not the height value. It seems that without the width and the height values set it doesn't animate and it draws smaller each time. Seems like a bug to me? Either way it is working as it expected now, thank you very much.
On Sunday, 6 July 2014 12:55:36 UTC-7, Andrew Gallant wrote: > > Are you redrawing the same Gauge object or are you creating new Gauge > objects on each draw? Since the Gauge isn't animating, it sounds like you > are doing the latter. The size changing problem is likely caused by not > setting the Gauge's height and width options. > > On Sunday, July 6, 2014 3:39:33 PM UTC-4, Giampaolo Ferraro wrote: >> >> Hi all, >> >> I am trying to get the Gauge to animate. I have the initial Gauge >> rendering perfectly fine but as soon i call the draw() function the Gauge >> renders again but slightly smaller this continues until eventually the >> graph has a negative width, at this point the next time I call draw() it >> renders at full size and the cycle resets. >> >> When I try the same code in the Google visualization playground it works >> fine. >> >> A few things about my environment. I am using ASP.Net and I am using the >> Google ChartWrapper object. >> >> No errors are shown in the console each time i re draw the graph or on >> the initial draw. >> >> Has anyone seen this problem before? Also the Gauge doesn't animate when >> I change the value it just jumps straight to the value I set it to. >> >> Thanks, >> Giampaolo >> > -- 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.
