The javascript function "document.getElementById(id)" fetches the HTML 
element with the given id.  In this case, you want to use div's to hold your 
charts, so you need one div for each chart you draw.  You could do:

<div id="chart_div_1"></div>
<div id="chart_div_2"></div>
<div id="chart_div_3"></div>

to hold three charts.  The chart objects would be created like this:

var chart1 = 
new google.visualization.ColumnChart(document.getElementById('chart_div_1'));
var chart2 = 
new google.visualization.ColumnChart(document.getElementById('chart_div_2'));
var chart3 = 
new google.visualization.ColumnChart(document.getElementById('chart_div_3'));

-- 
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/-/-t-253oH7IUJ.
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