Set your divs display properties to 'block'. Before calling the draw()
function of each chart, assign a 'ready' listener for that chart, and have
the listener set the div's display property to 'none'. Ex:
var chart1 = new google.visualization.BarChart(document.getElementById(
'chart1'));
google.visualization.events.addListener(chart1, 'ready', function () {
document.getElementById('chart1').style.display = 'none';
});
chart1.draw(data1, options1);
This draws the chart correctly and hides it near instantaneously. I used
this method on a page with 30+ charts and never noticed any weird problems
or artifacts.
--
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/-/vvMvVVVJ5icJ.
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.