Hi All, I have some code running just fine under Chrome, FF but failing under IE8. I am building a datatable with some data over a period of time, then using google.visualization.data.group to generate the sum of the data per month/year... I get the following javascript error on IE8:
Message: Invalid column index 7. Should be an integer in the range [0-6]. Line: 61 Char: 63 Code: 0 URI: https://www.google.com/uds/api/visualization/1.1/0f9aae5fe4c76dcee94bf558b42cd87c/format+en,default,controls,corechart.I.js Here is a toJSON() output of the datatale: { "cols":[{ "id":"","label":"postDate","pattern":"","type":"date"},{ "id":"","label":"mentions","pattern":"","type":"number"},{ "id":"","label":"Human Rights","pattern":"","type":"number"},{ "id":"","label":"International relations","pattern":"","type":"number"},{ "id":"","label":"Environment","pattern":"","type":"number"},{ "id":"","label":"Rule of law","pattern":"","type":"number"},{ "id":"","label":"Health","pattern":"","type":"number"}],"rows":[{ "c":[{ "v":"Date(2013, 5, 26)","f":null},{ "v":1,"f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2013, 5, 6)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2013, 5, 6)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2013, 5, 4)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2013, 4, 13)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2013, 3, 26)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2013, 3, 26)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2013, 3, 17)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2013, 2, 21)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2013, 2, 14)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null}]},{ "c":[{ "v":"Date(2013, 2, 13)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2013, 0, 16)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2012, 11, 24)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null}]},{ "c":[{ "v":"Date(2012, 11, 7)","f":null},{ "v":1,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":0,"f":null},{ "v":1,"f":null},{ "v":0,"f":null}]}],"p":null} Here is the bit of code that fails: var aggregateArray = new Array(); for (i=1; i< data.getNumberOfColumns(); i++) { aggregateArray[i-1] = {'column': i, 'aggregation': google.visualization.data.sum, 'type': 'number'}; } currentDisplayData = google.visualization.data.group(data, [ {'column': 0, 'modifier': getMonth, 'type': 'date'}, ], aggregateArray ); Any help greatly appreciated. Jerome -- 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.
