Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Pie Chart not displaying Internet Explorer 8

I'm using a Google Pie chart which displays as expected in Firefox but doesn't display in IE8 and gives the following error in the console:

SCRIPT5022: Every row given must be either null or an array. 
format+en,default,corechart.I.js, line 202 character 63

I'm using a Google Line Chart on another page and this displays fine.

Appreciate any pointers.

like image 398
Mr B Avatar asked Oct 06 '11 10:10

Mr B


1 Answers

Figured it out. Its because theres a trailing comma at the end of the last element of the array containing the data to populate the chart. Removing this comma gets rid of the error and the graph displays as expected.

like image 136
Mr B Avatar answered Sep 29 '22 08:09

Mr B