This is my code:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<c:set var="cssURL" value="pt://images/plumtree/common/public/css/
mainstyle19-en.css"/>
<link href="pt://images/plumtree/common/custom/apps/myTurf/main.css"
rel="stylesheet" type="text/css">

<title>Ajax Call</title>

<!-- Google Chart API -->
<script type="text/javascript"
     src="http://www.google.com/jsapi";>
</script>
<script type="text/javascript">
        google.load('visualization', '1',
    {packages: ['linechart']});
</script>
<!-- Google Chart API -->

<script = "javascript">
        //Interactive Line chart
        //google.load("visualization", "1", {packages:["barchart"]}); // For
Horizontal bar chart
        google.load("visualization", "1", {packages:["linechart"]});  //For
vertical bar chart
    google.setOnLoadCallback(drawLineChart);

        function drawLineChart(){

                var data = new google.visualization.DataTable();
        data.addColumn('string', 'Year');
        data.addColumn('number', 'Sales');
        data.addColumn('number', 'Expenses');

        data.addRows(4);

        data.setValue(0, 0, 'Jan');
       // data.setValue(0, 1, 0);
        //data.setValue(0, 2, 0);

        data.setValue(1, 0, 'Feb');
        //data.setValue(1, 1, 0);
       // data.setValue(1, 2, 0);

        data.setValue(2, 0, 'Mar');
        data.setValue(2, 1, 0.14285715);
        data.setValue(2, 2, 0);

        data.setValue(3, 0, 'Apr');
        data.setValue(3, 1, 3);
        data.setValue(3, 2, 0);

        var chart = new
google.visualization.LineChart(document.getElementById('chart_line_div')); //
for vertical bar chart
        chart.draw(data, {width: 400, height: 240, is3D:
true,isStacked: true,enableTooltip: true, title: 'Company
Performance'});

        }
        //Interactive Line chart


</script>
</head>
<body>

Interactive Line Chart
<div id="chart_line_div"></div>


Google Charts API POC
</body>
</html>

For the first time this code is workibg fine. But when I make changes
and refres the page its giving me stackoverflow error. It says stack
overflow at line 140. This is the only code I am working on. I cannot
see anything that is called recurssively. Can anybody help me out with
this ??. Any help would be appreciated. Thanks in advance :D

-- 
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