Hi Lakshay,

The node selections for Sankey will not give you either a column or a row
reference. That doesn't really make sense for nodes, since there's no
canonical cell, row, or column that can be viewed as the reference to the
node, because a single node could be referenced multiple times in the
DataTable. Instead of this, we give you an object with a 'name' property.
This gives you the identifier of the node, so you can find the node
yourself. Here's a version of your jsfiddle that takes this into account:
https://jsfiddle.net/xdubqzmf/

On Wed, Jun 24, 2015 at 2:12 AM Lakshay Akula <[email protected]>
wrote:

> Hello Sergey,
>
> I'm running into some issues now trying to take advantage of the selection
> functionality in the Sankey diagrams. I want to retrieve the node which was
> selected by using getSelection() and then finding the appropriate row and
> column value in the DataTable. However, I'm only getting null row and
> column values here. Any help?
>
> Link to jsfiddle - https://jsfiddle.net/lakula/kLyzm3a6/
>
>
> On Monday, June 22, 2015 at 7:06:23 AM UTC-7, Sergey wrote:
>
>> Hi Lakshay,
>>
>> You are posting in the right place! The reason that Sankey selection
>> wasn't working for you is that you need to explicitly enable selection on
>> the Sankey chart via the 'sankey.node.interactivity' option. The currently
>> release only supports node interactivity, and the next should support both
>> node and link interactivity. Here is a modified version of your jsfiddle
>> with working selection: https://jsfiddle.net/gcxusavm/
>>
>> On Fri, Jun 19, 2015 at 7:06 PM Lakshay Akula <[email protected]>
>> wrote:
>>
> Hey everyone,
>>>
>>> I'm not sure if this is the appropriate place to post this, but I'm
>>> having issues with the "select event" and the Sankey Diagram. I want the
>>> Sankey diagram to display an alert box when clicked.
>>>
>>> Here is the Sankey diagram without a working select functionality -
>>> https://jsfiddle.net/lakula/zkpakn9u/3/
>>> Here is a box chart with a working select functionality -
>>> https://jsfiddle.net/lakula/nx6my3bc/2/
>>>
>>> Can someone help me figure out what's stopping the select functionality
>>> from working properly in my Sankey diagram?
>>>
>>> Thanks,
>>> Lakshay
>>>
>>> --
>>> 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.
>>>
>>  --
> 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.
>

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