I was trying to use the getRow() method (described here)
But when running my webpage I get "Uncaught TypeError: Object #<U> has no method 'getRow' "
.
Has this function been deprecated ? If not, how can I make sure I can use it ?
Here is my code :
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
google.load('visualization', '1',{'packages': ['table']});
and then later on (both data
and dataToAdd
are DataTable()
):
data.addRow(dataToAdd.getRow(0));
I found a workaround using
(dataToAdd.K).map(function tmp(x) {return(x["c"])})
This gives you the array of rows in your dataToAdd
DataTable().