I have commented out everything. Only Thing I have included is the <script type="text/javascript" src="http://www.google.com/jsapi">
</script> <script type="text/javascript"> google.load('visualization', '1', {packages: ['linechart']}); </script> Now when i introduce this package script into the code and run the code again its giving me stack overflow error: <script type="text/javascript"> google.load('visualization', '1', {packages: ['linechart']}); </script> I have commented everything. The calls to callback function, the draw method... , every function i have commented. What does this mean ? Is this google api's load method calling itself within the function ? On Mar 29, 4:38 pm, Viz Kid <viz...@google.com> wrote: > Since I'm not familiar with this infrastructure, I'm afraid I don't know how > I can assist. > If you can be more specific on what causes the errors and what errors are > seen exactly it might be helpful. Also, try to make the example which causes > the problem to be as small as possible. Maybe load only one package and also > see if this happens if you only load the package and not drawing anything. > > > > On Mon, Mar 29, 2010 at 1:23 PM, prastu <pratiksha.gh...@gmail.com> wrote: > > I have tried doing that, still its not working.Actually I am trying to > > run this on plumtree portal server. > > That is where I am getting the problem. Whenever I load the portal > > with chart and try to do some different action after that like > > (refresing the page, or clicking on another link or closing the > > window) the stack overflow error occurs. This code is working fine on > > normal tomcat server but the same when I try to run on portal server I > > get the StackOverFlow error :( > > Any suggestions why this is happening > > > On Mar 29, 1:37 pm, Viz Kid <viz...@google.com> wrote: > > > Hi. > > > > Can you try loading the visualization API only once to see if this solves > > > the problem? Also, if you want to load several packages, you can do it in > > a > > > single call by passing the list of all packages you need (and > > specifically > > > you load linechart package twice, while in the second time your comment > > > indicates you wanted columnchart). > > > > Best, > > > Viz Kid > > > > On Mon, Mar 29, 2010 at 9:14 AM, prastu <pratiksha.gh...@gmail.com> > > wrote: > > > > > 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 > > > > google-visualization-...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-visualization-api+unsubscr...@googlegroups.com<google-visualization-api%2bunsubscr...@googlegroups.com> > > <google-visualization-api%2bunsubscr...@googlegroups.com<api%252bunsubscri�...@googlegroups.com> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-visualization-api?hl=en.-Hide > > quoted text - > > > > - Show quoted text - > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Visualization API" group. > > To post to this group, send email to > > google-visualization-...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-visualization-api+unsubscr...@googlegroups.com<google-visualization-api%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-visualization-api?hl=en.- Hide quoted > >text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to google-visualization-...@googlegroups.com. To unsubscribe from this group, send email to google-visualization-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.