Link to home
Start Free TrialLog in
Avatar of xenium
xenium

asked on

How to listen for click event on google fusion chart

hi,

The following is an example of network graph from a fusion table:

http://enex.net/autorecon/fusion/GC_network.html

How can i listen for a click event and then return the name of the node that has been clicked?

I'm a novice here so please bear with me.

I notice that once the page has loaded, it's possible to click and drag nodes around even without an internet connection, so all the data is pre-loaded to the browser.

The following might give some clues: https://developers.google.com/fusiontables/docs/samples/change_infowindow_content

Thanks
Avatar of xenium
xenium

ASKER

Avatar of xenium

ASKER

I'm still stuck on this. Any help appreciated. Thanks
Avatar of xenium

ASKER

I notice that once loaded the graph continues to function without an internet connect (ie nodes can be dragged and moved about)

Is there any way to start 'hacking' the code somehow. I have no experience with the 'inspection' options in Chrome or Edge but suspect they maybe able to help here. eg to find events to listen out for
Avatar of xenium

ASKER

For what it's worth, there's a parameter in the HTML starting 221_ which appears to be the initial co-ordinates of the nodes (changing these does not affect the graph data, just the display)

Playing around with a smaller example (copy offline and edit html) http://enex.net/autorecon/fusion/fusion_hack.html
it seems this structure is 221_(node ID)_(x position)_(y_position)_ repeat for each node ID

Not sure this helps on my question but could be useful somewhere.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.