Thanks for help me, buI tried that and I will not. I assume that the user will select one just because they can make more selections at a time. The first line if it works (var selection = Chart.getSelection();), but the second is not.(var name = dataTable.getValue(selection[0].row, 3);) It freezes the chart and unresponsive to new interactions.
El lunes, 20 de mayo de 2013 18:49:19 UTC+2, asgallant escribió: > > 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.
