visjs / vis-timeline

📅 Create a fully customizable, interactive timelines and 2d-graphs with items and ranges.
https://visjs.github.io/vis-timeline/
Other
1.87k stars 314 forks source link

Vis-timeline: Option to show horizontal scroll bar #1002

Open cuijulian opened 3 years ago

cuijulian commented 3 years ago

When using verticalScroll: true it shows a vertical scroll bar at the left side of the timeline.

I would like to request a feature to show a horizontal scroll bar on the top or bottom of the timeline to scroll through times:

horizontal_scroll_bar

Is this already supported? Thanks in advance!

mojoaxel commented 3 years ago

I don't think that a horizontal scrollbar makes sense here because for this to make sence the min and max would have to be set. Otherwise the timeline can be scrolled endlessly.

I would recommend hinting the user somehow to use the mouse-drag feature.

CrashLaker commented 2 years ago

we could maybe scroll horizontally when "Shift" is pressed

no key scroll: scroll vertically shift + scroll: scroll horizontally ctrl + scroll: zoom

ChR-iSz commented 2 years ago

Any news here ? A horizontally scrollbar sounds amazing....

simonflutilliant commented 2 years ago

Hello, here is a hack to have a horizontal scrollbar with a div surrounding the actual timeline. Need to use min and max to have the component set with boundaries ! https://codepen.io/simonflutilliant/pen/RwxoZRY

cnagytcorp commented 2 years ago

"shift + scroll: scroll horizontally" I like the idea, recently turned on fixed height now lost horizontal scroll

BDMChau commented 1 year ago

have any update? I also need this feature

mojoaxel commented 1 year ago

It could not be implemented as a normal scrollbar because the main container only had "virtual scrolling". We would need to imply this basically just as an indicator of the current scroll position and zoom level.

This library is basically unmaintained at the moment. Don't expect any new features like this without external contribution.

If your company needs this: I would estimate ~4k€ to implement this.

ChR-iSz commented 1 year ago

@mojoaxel

Are you serious to ask for money in threads to implement a scrollbar. I will draw my conclusions and not follow this repository anymore. 4k for a scrollbar! That's a joke...

asinghca commented 9 months ago

Firstly, I appreciate the authors that put in their valuable time to give us this comprehensive timeline library to use for free of cost.

Here is a great example that one can leverage in building their scrollbar functionality via move left/right buttons: https://visjs.github.io/vis-timeline/examples/timeline/interaction/navigationMenu.html

Again, thank you to all the authors for putting in extra time and care in drafting all these detailed examples!