<script type="text/javascript" src="https://www.google.com/jsapi"></
script>
<script type="text/javascript">
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Month');
data.addColumn('number', 'Passengers');
<%
if(hmChart!=null)
{
Iterator itData = hmChart.keySet().iterator();
String year="";
int count=0;
while(itData.hasNext())
{
year = itData.next().toString();
count = hmChart.get(year);%>
data.addRow(['<%= year%>', <%=count%>]);
<%}}%>
var options = {
width: 400, height: 240,
title: 'Company Performance'
};
var chart = new
google.visualization.LineChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
google.setOnLoadCallback(drawChart());
</script>
--
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.