Sorry, I've had no time for fixing this.

On Thu, Jun 9, 2016 at 7:03 PM, 'Di Zhang' via Google Visualization API <
google-visualization-api@googlegroups.com> wrote:

> Hi Daniel,
>
> I was wondering do we have any update on this? We are also hitting this
> problem.
>
> Thanks,
> Di
>
> On Wednesday, April 6, 2016 at 8:04:43 AM UTC-7, Daniel LaLiberte wrote:
>>
>> The getSelection() method does return an array of selection objects, but
>> unfortunately, the objects are empty.  See this example:
>> https://jsfiddle.net/hrtgp54r/
>>
>> This is a bug, which I invite you to post on the issues list:
>> https://github.com/google/google-visualization-issues
>>
>> Thanks.
>>
>>
>> On Wed, Apr 6, 2016 at 10:31 AM, Domonic Hanson <domjd...@gmail.com>
>> wrote:
>>
>>> I have tried using this but it returns nothing?
>>>
>>> function selectHandler() {
>>> var selection = chart.getSelection();
>>> alert('You selected ' + selection);
>>> }
>>> google.visualization.events.addListener(chart, 'select', selectHandler);
>>>
>>>
>>>
>>>
>>> On Wednesday, April 6, 2016 at 3:22:53 PM UTC+1, Daniel LaLiberte wrote:
>>>>
>>>> Domonic,
>>>>
>>>> You should use the getSelection() method:
>>>> https://developers.google.com/chart/interactive/docs/gallery/ganttchart#methods
>>>>
>>>> On Wed, Apr 6, 2016 at 10:07 AM, Domonic Hanson <domjd...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am just wondering if it is possible for the user to click on one of
>>>>> the items on a gantt chart it will go to a new page pulling more
>>>>> information about that specific project.
>>>>>
>>>>> So for example if the user was to click on the blue bar (See below):
>>>>>
>>>>>
>>>>> <https://lh3.googleusercontent.com/-_u1EF5emalU/VwUXM9tricI/AAAAAAAAAWM/IDdtNkH0Dw0FedOlhkgMmuWp5IkaQb2VQ/s1600/Untitled-2.jpg>
>>>>>
>>>>>
>>>>> This would then redirect them to a page showing the stuff in the
>>>>> tooltip but also more data that is stored in the array.
>>>>>
>>>>>
>>>>> I have searched the internet and just can't seem to find anything that
>>>>> offers this.
>>>>>
>>>>>
>>>>> I have put this in:
>>>>>
>>>>>
>>>>> function selectHandler() {
>>>>> var row = data.getValue(0, 0);
>>>>> alert('You selected ' + row);
>>>>> }
>>>>> google.visualization.events.addListener(chart, 'select',
>>>>> selectHandler);
>>>>>
>>>>>
>>>>>
>>>>> I know this shows an alert but because the parameters are hard
>>>>> selected no matter which one you click on it shows "spring2014"
>>>>>
>>>>> Thanks in advanced.
>>>>>
>>>>> --
>>>>> 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 google-visualization-api+unsubscr...@googlegroups.com.
>>>>> To post to this group, send email to google-visua...@googlegroups.com.
>>>>> Visit this group at
>>>>> https://groups.google.com/group/google-visualization-api.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/google-visualization-api/fa55f3f8-57fa-4a5d-a0bc-24fc89554755%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/google-visualization-api/fa55f3f8-57fa-4a5d-a0bc-24fc89554755%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Daniel LaLiberte
>>>> <https://plus.google.com/100631381223468223275?prsrc=2>
>>>> dlali...@google.com   5CC, Cambridge MA
>>>>
>>> --
>>> 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 google-visualization-api+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-visua...@googlegroups.com.
>>> Visit this group at
>>> https://groups.google.com/group/google-visualization-api.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-visualization-api/9b5f8b98-c628-4631-b7ef-dace836a464e%40googlegroups.com
>>> <https://groups.google.com/d/msgid/google-visualization-api/9b5f8b98-c628-4631-b7ef-dace836a464e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
>> dlali...@google.com   5CC, Cambridge MA
>>
> --
> 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 google-visualization-api+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-visualization-api@googlegroups.com.
> Visit this group at
> https://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/d2b6753c-9c35-43a6-ae44-7f9d41731208%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/d2b6753c-9c35-43a6-ae44-7f9d41731208%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
dlalibe...@google.com <dlalibe...@google.com>   5CC, Cambridge MA

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJNAfaJh%3DJSQ9sdqDENQdKjR7rnhf1Q%2BoDbRXD1GFwVbaQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to