Thanks Daniel <https://plus.google.com/100631381223468223275?prsrc=2>,
I have to kick myself for the simple ',' issue. Thanks again for keeping me interested on the group. Regards, Devanand. On Monday, December 22, 2014 10:40:29 AM UTC-8, Daniel LaLiberte wrote: > > Hmm, once I finally got around to copy-pasting your code, I see an obvious > problem. You are missing the comma at the end of your header row, which > results in the first and second rows being turned into a single undefined > value. In my browser this results in the error: "Uncaught TypeError: > Cannot read property 'length' of undefined". We should be able to catch > this undefined first row and report a better error message. > > > On Mon, Dec 22, 2014 at 1:22 PM, Daniel LaLiberte <[email protected] > <javascript:>> wrote: > >> Oops.. I meant to say that calling arrayToDataTable as a constructor >> should NOT result in any different behavior. So if it actually does, we >> are very curious to learn the circumstances. >> >> On Mon, Dec 22, 2014 at 1:15 PM, Daniel LaLiberte <[email protected] >> <javascript:>> wrote: >> >>> Devanand, >>> >>> We are curious to learn more about the error you encountered. It seems >>> to us that calling arrayToDataTable as a constructor should result in any >>> different behavior since what 'this' is inside the arrayToDataTable >>> function shouldn't matter regarding what is returned as a result, except >>> there may be a difference in some browsers. So what browser are you using? >>> Are there other js libraries being loaded in your page that could >>> interfere? There might be something very different going on that we can't >>> tell from the code you posted. Can you put up an example of this problem in >>> a jsfiddle? >>> >>> On Sun, Dec 21, 2014 at 8:17 AM, Daniel LaLiberte <[email protected] >>> <javascript:>> wrote: >>> >>>> Hi Devanand >>>> >>>> Your call of arrayToDataTable should not be preceded by the "new" >>>> keyword. The error message is confusing and we will try to fix that. >>>> >>> >>> >>> >>> -- >>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> >>> - 978-394-1058 >>> [email protected] <javascript:> 5CC, Cambridge MA >>> [email protected] <javascript:> 9 Juniper Ridge Road, Acton MA >>> >> >> >> >> -- >> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> >> - 978-394-1058 >> [email protected] <javascript:> 5CC, Cambridge MA >> [email protected] <javascript:> 9 Juniper Ridge Road, Acton MA >> > > > > -- > Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> > - 978-394-1058 > [email protected] <javascript:> 5CC, Cambridge MA > [email protected] <javascript:> 9 Juniper Ridge Road, Acton MA > -- 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/d/optout.
