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

Get time difference between 2 events #327

Open ramstein74 opened 9 years ago

ramstein74 commented 9 years ago

Hello it would be nice to click 2 events and get the time difference

Thank you for you work.

Keep going...

josdejong commented 9 years ago

I thanks. I think this is quite a specific use case. With the successor of chap-links-library, vis.js, you can actually select multiple items (currently only using long-press). You can then get the selected item ids via timeline.getSelection(), retrieve the items themselves, and then calculate the time difference.