almende / vis

⚠️ This project is not maintained anymore! Please go to https://github.com/visjs
7.85k stars 1.48k forks source link

[Timeline] Feature request: stack ranges only when their time intersects #4185

Closed elricelf closed 5 years ago

elricelf commented 5 years ago

Simple example: got 2 ranges, 00:00-01:00 and 01:05-02:00. In a close zoom they don't stack, but when zooming out at some point they will stack one on top of another. Would be great to make it possible to represent ranges stacked only when their timings intersect, regardless of zoom level. timeline

P.S. Changing margin.item.horizontal is not an option

javdome commented 5 years ago

Hi!! The next option in the Timeline configuration will fix it: margin: { item: { horizontal: -1 } }

Besides, if you are interested in the Timeline module, its main contributor has forked the project and isolated this part in order to improve it. You can find it in: https://github.com/yotamberk/timeline-plus

See you

elricelf commented 5 years ago

Hi javdome! Thanks for your reply, it works brilliant! And one more thank for a link, glad to see this awesome module continue to evolve.