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

Timeline - Set custom time with click #355

Closed danielmartinezruiz closed 8 years ago

danielmartinezruiz commented 8 years ago

Can be possible to set the custom time by cliking on any space of the timeline? This could be a way to set this custom time in addition to the drag & drop...

josdejong commented 8 years ago

I guess you could attach your own click handler to the container of the Timeline, and do something on that click. The Timeline of the successor of chap-links-library, vis.js, has a click event built-in, and has a helper function to easily get the time where the mouse clicked.

danielmartinezruiz commented 8 years ago

Thanks for you answer. I'll use the vis.js!