Skip to content
This repository has been archived by the owner on Nov 19, 2019. It is now read-only.

Ability to group or somehow reduce the number of visible items #19

Closed
vlsi opened this issue Jul 20, 2018 · 5 comments
Closed

Ability to group or somehow reduce the number of visible items #19

vlsi opened this issue Jul 20, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@vlsi
Copy link

vlsi commented Jul 20, 2018

Currently Group. _updateItemsInRange computes the set of visible items, however there's no way to customize the set of "actually visible" items there.

https://github.com/yotamberk/timeline-plus/blob/master/lib/timeline/component/Group.js#L851

It would be nice if that could be customized.
Possible use cases:

  1. Show the heaviest ones. That is provide a callback so developer can pick the items to show
  2. Merge items so reduce overall item count (like http://visjs.org/examples/network/other/clusteringByZoom.html ).
@yotamberk
Copy link
Owner

It's called clustering.
I'll consider a built in solution

@vlsi
Copy link
Author

vlsi commented Jul 22, 2018

It's called clustering.

Is there a feature?
CHAP timeline had clustering, however the results were not that good.
On top of that, clustering was performed at render time, so if I put 100'000 items to the timeline, it just blows up.

I think it makes sense to pre-compute "clusters" (or whatever) and make timeline to use proper data set for each zoom level.

@yotamberk
Copy link
Owner

yotamberk commented Jul 22, 2018

I agree this should be done.
(EDIT: Somebody has implemented something nice here: http://www.iftekhar.me/ibm/ibm-project-timeline/)
If it will interest anybody enough, it will be done.
For now, it's not on my priority list. If somebody wants to take this feature upon themselves, that would be great.

Right now, I am not free to do features that are not on my own priority if I don't get sponsored to do it.

@vlsi
Copy link
Author

vlsi commented Jul 24, 2018

Right now, I am not free to do features that are not on my own priority if I don't get sponsored to do it.

@yotamberk , that makes perfect sense.

I'll keep issues to store findings related to the timeline if you don't mind.

@yotamberk yotamberk added the enhancement New feature or request label Sep 18, 2018
@yotamberk
Copy link
Owner

Implemented and closed with #87

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants