Yes, LineCharts support tooltip actions:

var chart = new 
google.visualization.LineChart(document.getElementById('visualization'));
chart.setAction({
    id: 'test',
    text: 'Test action',
    action: function() {
        var selection = chart.getSelection();
        console.log(selection);
    }
});
chart.draw(data, {
    tooltip: {
        trigger: 'selection'
    }
});

On Friday, November 22, 2013 4:58:31 PM UTC-5, Tribblehunter wrote:
>
> Can anyone tell me if the tool tip action (ir setAction) command works in 
> line charts? I can see the demo in a pie chart.
>
> I want to use this to extract the data fron the selected point and display 
> in a div. and then remove it when de-selected.
>
> Have tried it in my code but get an error 'Uncaught TypeError: Object 
> #<Y> has no method 'setAction' from chrome.
>
> Thanks in advance.
>
> Tribblehunter
>

-- 
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/groups/opt_out.

Reply via email to