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

Merge event instead of overlapping on zooming in? #1643

Closed
iftekharuli opened this Issue Feb 10, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@iftekharuli

iftekharuli commented Feb 10, 2016

Hi
Great library and thanks for making it available.
We are trying to merge event together when they overlap (when occurred in short interval or if user zoomed out) and display the number of the events merged.

I am sure there is a way to do this. Can anyone point me to right direction? Thanks in advance.

@iftekharuli iftekharuli changed the title from Merge event instead of overlapping on zooming in? to Merge event instead of overlapping on zooming in? Timeline Feb 10, 2016

@josdejong josdejong added the Timeline label Feb 10, 2016

@iftekharuli iftekharuli changed the title from Merge event instead of overlapping on zooming in? Timeline to Merge event instead of overlapping on zooming in? Feb 10, 2016

@josdejong

This comment has been minimized.

Show comment
Hide comment
@josdejong

josdejong Feb 10, 2016

Member

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.

Member

josdejong commented 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.

@iftekharuli

This comment has been minimized.

Show comment
Hide comment
@iftekharuli

iftekharuli Feb 10, 2016

@josdejong Thank you for your response. Yes. I think clustering in timeline is what I was looking for. Let me try to see if I can implement your solution and also look at network.

iftekharuli commented Feb 10, 2016

@josdejong Thank you for your response. Yes. I think clustering in timeline is what I was looking for. Let me try to see if I can implement your solution and also look at network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment