getting row number

11 views
Skip to first unread message

orkun

unread,
Oct 7, 2011, 4:41:18 AM10/7/11
to Google Visualization API
hello

how can I obtain row number I have selected in datatable ?

regards

asgallant

unread,
Oct 7, 2011, 9:41:33 AM10/7/11
to google-visua...@googlegroups.com
You need to set up an event listener to hook the 'select' event and use the chart's getSelection() method to pull the row number:

google.events.addListener(chart'select'function ({
    var selection chart.getSelection();
    alert ('The selected row number is: ' selection.row);
});

Reply all
Reply to author
Forward
0 new messages