[visualization-api] Re: Table getSelection()

2014-07-16 Thread frankstarhoward
Thank you..!! Cant believe i was referencing the original data rather that the table state. Thanks for your help. Frankie On Wednesday, 16 July 2014 02:38:22 UTC+1, Andrew Gallant wrote: > > You need to reference the data as seen by the table by calling the > ChartWrapper's #getDataTable metho

[visualization-api] Re: Table getSelection()

2014-07-15 Thread Andrew Gallant
You need to reference the data as seen by the table by calling the ChartWrapper's #getDataTable method: var dt = myTable.getDataTable(); var selection = myTable.getChart().getSelection(); for (var i = 0; i < selection.length; i++) { var value = dt.getValue(selection[i].row, 0); // get value i