Hi I will post my js code as an example, but be aware that the examples 
related to Data Sources in the Google Visualization playground throw the 
same error:
http://code.google.com/apis/ajax/playground/?type=visualization#data_source_request

I´ve tried several solutions with no luck like:
http://stackoverflow.com/questions/3719866/google-visualization-piechart-linechart-jquery-ajax-firefox-issue

Please help.

Regards.

Matt


    // Load the Visualization API and the required packages in my case 
corechart and controls.
google.load('visualization', '1.0', {packages: ['corechart', 'controls']});
    // Set a callback to run when the Google Visualization API is loaded.
google.setOnLoadCallback(drawVisualization);
    
    function drawVisualization () {
    var query = new 
google.visualization.Query('https://docs.google.com/spreadsheet/ccc?key=notRelevant-all-remote-data-sources-produce-the-same-error');

    query.setQuery('SELECT A, B, C, D, E, F,G,H,I,J,K,L,P,N,O');

    query.send(function (response) {
        if (response.isError()) {
            alert('Error in query: ' + response.getMessage() + ' ' + 
response.getDetailedMessage());
            return;
        }
        var data = response.getDataTable();

        // Create a Callsign filter control
        var filter = new google.visualization.ControlWrapper({
'controlType': 'CategoryFilter',
'containerId': 'control_div',
'options': {
'filterColumnIndex': 0,
"filterColumnLabel" : "Callsign",
'ui': {
"label" : "",
'caption' : 'Callsign',
'allowTyping': false,
'allowMultiple': true
}
},
            'state': {'selectedValues': ['None']}
});


// Create a Contest filter control
var filterContest = new google.visualization.ControlWrapper({
   'controlType': 'CategoryFilter',
   'containerId': 'controlFilContest_div',
   'options': {
'filterColumnIndex': 5,
"filterColumnLabel" : "Contest",
'ui': {
"label" : "",
'caption' : 'Contest',
'allowTyping': false,
'allowMultiple': true
}
},
            'state': {'selectedValues': ['None']}
            });



        // Create a Table visualization
        var cTable = new google.visualization.ChartWrapper({
            chartType: 'Table',
            containerId: 'table_div', 
options: {allowHtml: true}
});


        // Create the dashboard.
        var dashboard = new 
google.visualization.Dashboard(document.getElementById('dashboard')).
        // Configure the string filter to affect the table contents
        bind([filter,filterContest],[cTable]).
        // Draw the dashboard
        draw(data);
    });
}
  

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