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 <[email protected]> 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 <[email protected]> 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 <[email protected]> > 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 > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-visualization-api%[email protected]> > <google-visualization-api%[email protected]<api%[email protected]> > > > > > . > > > 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 > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-visualization-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- 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.
