Hmmm...what happens when you break them up into two separate functions? 
 Try this:

function drawTable1() {
    // Set chart options
    var options1 = {
        title: 'All Messages Queue Detail',
        width: 600,
        height: 400
    };
    
    var wrapper1 = new google.visualization.ChartWrapper({
        chartType: "Table",
        containerId: "all_messages",
        dataSourceUrl: 
"http://localhost:9999/chart?query-type=queue-detail&queue-name=test_client1&vpn=jack&timeDelay=0";,
        refreshInterval: 10,
        options: options1
    });
    
    wrapper1.draw();
}

function drawTable2() {
    // Set chart options
    var options2 = {
        title: 'Old (30 sec) Messages Queue Detail',
        width: 600,
        height: 400
    };
    
    var wrapper2 = new google.visualization.ChartWrapper({
        chartType: "Table",
        containerId: "old_messages",
        dataSourceUrl: 
"http://localhost:9999/chart?query-type=queue-detail&queue-name=test_client2&vpn=dmitri&timeDelay=800";,
        refreshInterval: 5,
        options: options2
    });
    
    wrapper2.draw();
}

function drawVisualization() {
    drawTable1();
    drawTable2();
}

google.setOnLoadCallback(drawVisualization);
google.load('visualization', '1.0',{'packages':['corechart']});  // Note: 
No need to specify chart libraries.

On Thursday, June 20, 2013 1:21:38 AM UTC-4, Dima Reason wrote:
>
> I did notice in a Firefox debugger Error message I can't understand:
>
> Error: Missing query for request id: 0
>
> O.yk=function(a){a[Jd].bh()?(a=ro(a[Jd].Uk()),a[sb](/^({.*})$/)?(a=no(a),ss(a)):ao(oo(a))):this.xc?this.Kf(nk,a[Jd].Nh()):e(s("google.visualization.Query:
>  
> "+a[Jd].Nh()))};function ss(a){var 
> b=a.reqId,c=os[b];c?(os[b]=m,c.Bc(a)):e(s("Missing query for request id: 
> "+b))}O.xc=m;O.be=m;O.ie=m;O.Ra=m;O.xf=m;O.Ac=m;O.Ef=k;O.Lb=0;O.$b=m;O.Ha=n;O.setRefreshInterval=function(a){(typeof
>  
> a!=L||0>a)&&e(s("Refresh interval must be a non-negative 
> number"));this.Lb=a;this.Uh()}; 
>
>
> I dont seem to have any "negative" intervals of refresh. both are 
> positive. And also, as I said above, both charts work as separate pages.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to