Igor Simic
7 years ago

Row given with size different than 5 (the number of columns in the table) - when using Google Charts


When using Google charts library sometimes it can happen that graph is not displayed correctly for specific date, or if that date is included in selected date range and error that can be visible in browser console is something like this Row given with size different than 8 (the number of columns in the table).

The reason for this could be that, for some reason, you have duplicated data for that day. Google chart is taking single array set for each date and it should be one record per item in graph for specific date. If there are more than data array/object for that day you can see this message and Google charts will not work. 

So take a look in data object used for generate Google charts.