The selection object is typically an array, which potentially contains 
multiple selected data points.  If you are assuming that your users are 
only selecting one point (or the chart doesn't support multiple 
selections), then this is what you would do:

var selection = Chart.getSelection();
var name = dataTable.getValue(selection[0].row, 3);

On Monday, May 20, 2013 12:13:11 PM UTC-4, John wrote:
>
> How I can get the name of the tooltip.
> I'm using the event 'select' and the function getSelection and getValue, 
> but the line getValue not work fine. I trie with several types code and I 
> couldn't get the name.
>
> The code is:
>
>          var selection = Chart.getSelection();
>          var name = 
> dataTable.getValue(selection.row[0],selection.column[3]);
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to