Skip to content
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

horizontalScroll #104

Closed
renatocava opened this issue Dec 21, 2020 · 2 comments
Closed

horizontalScroll #104

renatocava opened this issue Dec 21, 2020 · 2 comments

Comments

@renatocava
Copy link

Hi,

I am trying to add the horizontalScroll option but I am not successful, do you know if it is possible? have you tried it?

image

https://visjs.github.io/vis-timeline/docs/timeline/#Configuration_Options

Thanks!

@daattali
Copy link
Owner

Usually when a parameter doesn't seem to work, it's because the version of visjs used in this package doesn't yet have that parameter implemented. This package is using a 4 year old version of visjs (because of various issues I still can't update to a newer one but I would love to at some point, see #50 for context) so you'll have to find the documentation of visjs for that version and see if it had this parameter.

@daattali
Copy link
Owner

This should now work if you use the latest timevis version from github.

timevis(
  data.frame(
    id = 1:2,
    content = c("one", "two"),
    start = c("2020-01-10", "2020-01-11")
  ), 
  options = list(horizontalScroll = TRUE, zoomable = FALSE)
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants