Perfect. Many Thanks.

On Saturday, July 26, 2014 2:23:31 AM UTC+1, Andrew Gallant wrote:
>
> You can use a "click" event handler:
>
> google.visualization.events.addListener(chart, 'click', function (event) {
>     var match = event.targetID.match(/^line#(\d+)$/);
>     if (match) {
>         console.log('clicked line from series index ' + match[1]);
>     }
> });
>
> The series index is *usually* the associated DataTable column index - 1 
> (so series 0 is from column 1); this can be disrupted if you use any role 
> columns to change tooltips, add annotations, etc.
>
> On Friday, July 25, 2014 1:59:03 PM UTC-4, Mark Leavy wrote:
>>
>> Hi,
>>
>> I'm using a LineChart and am handling the events for clicking on a legend 
>> or any node on the graph. Is it possible to detect when a line itself has 
>> been clicked, i.e anywhere on a line between any two nodes?
>>
>> Regards
>>
>

-- 
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