I need to get at the underlying data of a selection of a Table
visualization. Here's my event handler code:
google.visualization.events.addListener(tableChart1, 'select',
function(event){
var row = tableChart1.getSelection();
var test = tableChart1;
var test2 = tableChart1.tb.textContent;
});
row[0].row will give me the selection row but then I need to access
the actual data that is stored in the row.
I found this thread:
http://groups.google.com/group/google-visualization-api/browse_thread/thread/1c1327d7f783f0c4/925bbeaf86a03f11?lnk=gst&q=getselection#925bbeaf86a03f11
which mentions using the getDataTable() method but my tableChart1
object doesn't have a getDataTable() method.
tableChart1.tb.innerHTML contains the html for the table and as a last
resort I could parse through that data but I'm thinking there has to
be an easier way.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.