Hi, it sounds like you're trying to access properties on our obfuscated format. This is not supported. We explicitly have functions to help you get data out of the DataTable, like DataTable.getValue and DataTable.getFormattedValue so that you wouldn't have to do this. If we are missing functions that you need, please file a feature request. The obfuscated code might change any time we do a release or patch, and so can break at any time.
It looks like your code simply attempts to get the number of rows (in a somewhat roundabout way, since you could have just done dataState.xf.length), but we have a function that does just that — you can call DataTable.getNumberOfRows(). Here is the documentation for our DataTable<https://developers.google.com/chart/interactive/docs/reference#DataTable> so that you may refer to it in the future. - Sergey On Thu, Apr 3, 2014 at 2:27 PM, Ravindra Gharge <[email protected]>wrote: > > Today suddenly my charts stopped working which was working fine some days > back. > > I seen the error log error was “TypeError: dataToTest.xf is not an object”, I > checked the data Objet by printing on the console that time I came to > know Google had changed the Object format. > > I have this line in my code > > var numb = Object.keys(dataState['xf']).length; > > for getting the no of elements from data object but in the console I > checked xf get replaced by zf. > > Why Google change this? I have subscription of the notification about the > Google visualization API then also I not got any notification about this > change > > -- > 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. > -- 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.
