-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoomable timeline #57
Comments
Ok, thanks for the reply. I might have a look at this. |
Any success implementing zooming ? Would indeed be a great feature for this nice timeline ! |
Not yet, I'm using d3-timeline to make a clinical timeline (https://github.com/cBioPortal/clinical-timeline/tree/gh-pages). The zoom feature has low priority at the moment. |
I Implemented something zoom like. I created a helper function which triggers when a select dropdown changes. in the select there are different zoom levels defined. Code is like this https://gist.github.com/Tak0r/ba4464078122f7748982 hope this helps |
Has anyone gotten around to implementing this zoom with the d3-timeline.js script? I see the following code from d3-timeline.js, but is it enough to perform a scrollable zoom? How would one invoke this on a timeline object?
I have a feeling it's something along the lines of the following (I commented the portion of the code where I think I ought to be invoking the zoom):
I should also like to mention that this is part of a project that was handed off to me, thus why I am consulting this thread and not utilizing other zoom documentation very well. Any help is much appreciated! |
Added horizontal zooming with mouse wheel (closes jiahuang#57). Code cleanup. Fixed newely introduced bugs: (1) background occluding data rects, (2) support for xaxis orientation top. Added grouping of the data rects in the svg (viewport).
It would be great if one could zoom in on the timeline with the mousewheel (perhaps only along x axis) and move the timeline with dragging. Currently there are only examples of using the mousewheel for horizontal scrolling. Any suggestions on how one could implement this?
The text was updated successfully, but these errors were encountered: