almende / chap-links-library

a web based visualization library for displaying graphs, networks, and timelines
http://almende.github.com/chap-links-library
Apache License 2.0
599 stars 167 forks source link

Network - How can I fire an event on node/link selection #354

Open Ema-jar opened 8 years ago

Ema-jar commented 8 years ago

I need to identify each node/link with an unique id and I would like to fire an event when I click on this element. There is a way to do this? I'm currently using the code behind this example, can you give me some hint?

Thank you

josdejong commented 8 years ago

There is a select event for nodes, but not for links. See docs: http://almende.github.io/chap-links-library/js/network/doc/#Events

The Network visualization of vis.js (this successor of chap-links-library) contains selection events for both nodes and links (edges).