You can draw two charts within a single function:
function drawCharts() {
var data1 = new google.visualization.DataTable();
<populate data1>
var data2 = new google.visualization.DataTable();
<populate data2>
var chart1 = new
google.visualization.ColumnChart(document.getElementById("chart_div_1"));
chart1.draw(data1, <options>);
var chart2 = new
google.visualization.ColumnChart(document.getElementById("chart_div_2"));
chart2.draw(data2, <options>);
}
The div ID's are arbitrary; use whatever you choose to name them in the
HTML.
--
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/-/n7gkuLvIq-8J.
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.