Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Merge event instead of overlapping on zooming in? #1643
I am sure there is a way to do this. Can anyone point me to right direction? Thanks in advance.
changed the title from
Merge event instead of overlapping on zooming in?
Merge event instead of overlapping on zooming in? Timeline
Feb 10, 2016
This sounds like you want to do clustering, this feature is not yet available in Timeline but for example Network supports it.
What you can do is add a listener to rangechange events, see how large the visible window is, determine sort of a "zoom level". Depending on the "zoom level", you can replace your items with clustered items. You will have to cluster them yourselves, for example loop over your data and group all items which are closer than x milliseconds.