>From my experience, I've noticed that some charts are designed for
"smooth updates", like the gauges.  Others redraw.  But the redraw is
very fast.

For fast redraws, you need to be careful how you manipulate the data
set.  Instead of this:

    var data = response.getDataTable();
    chart.draw(data, {width: 400, height: 240, title: 'Company
Performance'});

Create a chart using the ChartWrapper class.  Set the data property
once, when you initialize it.

Then when you update the data object (don't create a new one each
time, just update the cells of the table or add/remove rows
appropriately), just call the wrapper's draw() method without
supplying a new data set.

In your code snippet, you are creating a new DataTable each time,
which along with the draw(DataTable), is slow.  In my suggestion, you
are updating a DataTable, and then just calling draw().  This is a
little faster and might make all the difference you need.

gl,

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
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