Yes, js is technically single-threaded (in all browsers except Chrome), but 
it behaves similar to a multithreaded language when asynchronous processes 
(AJAX, event listeners, timeouts) are used.  You could be having a problem, 
though, if you are handling the asynchronous processes wrong.  If you post 
your code or a link to the page, I can take a look and see.

As far as the animation duration goes, I tested a bunch of cases, and the 
only time things went awry was when I tried to use an unsupported animation.

On Thursday, July 26, 2012 5:29:40 PM UTC-4, API Developer wrote:
>
> Hi,
>
> I'm trying to add an animation to my charts when I insert data into the 
> middle of the DataTable. Currently I've made a couple prototypes that work, 
> but I can't seem to get the full program to work. I think my problem 
> revolves around the fact that I'm waiting for a response of more data to 
> replace the entire dataset with while I'm trying to do the animation 
> and JavaScript is uni-threaded. Would this be a legitimate problem?
>
> Also, it seems that my animation just goes extremely fast, although I 
> place in 2000 under the duration it takes a couple milliseconds. Has anyone 
> had any problems with the animation working that seem similar? And what 
> have you done to correct it?
>
> Thanks for any help!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/o8I-nzEekp8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to