MrTik
unread,Dec 29, 2011, 7:32:18 PM12/29/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
Here is the code that I am trying to render, however I get the
mentioned error.
function rDetailQueryResponse(response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' '
+response.getDetailedMessage());
return;
}
mResultDetails = response.getDataTable();
var mDrawData2 = new
google.visualization.Table(document.getElementById('visualization2'));
mDataJoin = new
google.visualization.data.join(mResultDetails,mDriverName,'left',
[[1,1],[2,2],[3,3],[4,4]],[5,6,7,8,9,10,11,12,13,14,15,16],[5]);
// Define a chart to show data
var columnChart = new google.visualization.ChartWrapper({
'chartType': 'ColumnChart',
'containerId': 'chart3',
'options': {
'width': 1500,
'height': 800,
'legend': 'right',
'isStacked': true,
'title': 'Forward Costs Initiatives Impact',
'seriesType': 'bars',
'series': {7: {type: 'line'}, 8: {type: 'line'}, 9: {type:
'line'}}
},
// Configure the barchart to use columns
'view': {'columns': [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]}
});
//Define a table
var table = new google.visualization.ChartWrapper({
'chartType': 'Table',
'containerId': 'chart2',
'options': {
'width': '1500'
},
// Configure the barchart to use columns
'view': {'columns': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14]}
});
new
google.visualization.Dashboard(document.getElementById('visualization')).bind([columnChart,
table]).draw(mDataJoin);
}
Any thoughts as to why I would get this error?
Thanks.