The proper way to track selection is to listen to the 'select' event from the chart. You can attach the listener by following the documentation here.<https://developers.google.com/chart/interactive/docs/events#Event_Listeners> The select event itself is documented here<https://developers.google.com/chart/interactive/docs/events#The_Select_Event>. I also made a jsfiddle to get you started <http://jsfiddle.net/xnnET/1/>. Hope this helps!
- Sergey On Tue, May 14, 2013 at 3:51 AM, Juan F. Hernández <[email protected]> wrote: > Hi everyone! > > I'm using this API with a Treemap View representation. > > My problem comes when trying to use the method GetSelection () when > clicked, to export the name of the selection. > > I'm using a eventListener to capture the onclick event calling a > function where I try to get the name. > > I followed the example of GetSelection function () but I have not > gotten to work. > > Can you help me? > > -- > You received this message because you are subscribed to the Google Groups > "Google Chart 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-chart-api?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google Chart 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-chart-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
