You can't get the title from the chart object, but since the title is set 
via the options you pass to the chart, you can check the options object:

function myClickHandler() { 
    alert(options.title);
}

On Monday, March 17, 2014 2:02:27 PM UTC-4, Bryan Dellinger wrote:
>
>  
>
> I would like to get the name of the chart on the select event
>
> var charta = 
> newgoogle.visualization.PieChart(document.getElementById(systems[i] + 
> '_piechart_3d'));
>
> function myClickHandler(){ 
>
> alert(charta.title);
>
> }
>
>  
>
> google.visualization.events.addListener(charta, 'select', myClickHandler);
>
> charta.draw(data, options);
>
>  
>
> is not working.
>
>  
>
>                       
>
>    
>
>  
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to