JS error when creating a google column chart on IE8

363 views
Skip to first unread message

Gulfam Amin ul Haq

unread,
Dec 5, 2011, 11:26:10 AM12/5/11
to Google Visualization API
hi

i am trying to display a column chart on IE 8 but i get the following
error


Message: Invalid column index 3. Should be an integer in the range
[0-2].
Line: 202
Char: 63
Code: 0
URI: https://www.google.com/uds/api/visualization/1.0/92cbb0f92b037d8f5681d4066f62a719/format+en_GB,default,corechart.I.js

Now
i am creating a table first and then using that data to generate the
chart, so when i use the same data to create a table there is no
error, but if i use that table to draw a column chart i get the above
stated error any idea

asgallant

unread,
Dec 5, 2011, 2:26:16 PM12/5/11
to google-visua...@googlegroups.com
This usually is due to an errant comma at the end of an array; IE does not like them.  Check for extra commas, and if that doesn't fix the problem, post your javascript here for us to look at.

Gulfam Amin ul Haq

unread,
Dec 5, 2011, 7:54:44 PM12/5/11
to google-visua...@googlegroups.com
Solved it, it was because of an extra column being created in the table
Reply all
Reply to author
Forward
0 new messages