Google DataTable: Return a column object

1.5k Views Asked by At

I am using the google datatable object to create google visualizations. I would like to read a datatable and then create multiple subtables from that original object.

According to the google documentation there is not a method to "getColumn."

http://code.google.com/apis/visualization/documentation/reference.html#DataTable

I know there is a cols property but I am not sure exactly what this property is used for. Does anyone have any ideas about how to do this, and explain what the cols property is used for?

1

There are 1 best solutions below

0
On BEST ANSWER

Sounds like making views from the original datatable is what you are looking for. Check out this link:

http://code.google.com/apis/visualization/documentation/reference.html#DataView

There its also a description of the cols property on that page.