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

Set different 'align' for each item is not allowed #106

Closed
Cheng-Cheng2 opened this issue Jan 18, 2021 · 2 comments
Closed

Set different 'align' for each item is not allowed #106

Cheng-Cheng2 opened this issue Jan 18, 2021 · 2 comments

Comments

@Cheng-Cheng2
Copy link

I could not figure out how to set 'align' for each item. Can only set the global option for boxes to align but not able to align differently for each item. However, this functionality is supported in the vis.js.

@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

visjs has been updated so this should work now with the latest github version

timevis(
  data.frame(
    id = 1:3,
    content = c("one", "two", "three"),
    start = c("2020-01-10", "2020-01-11", "2020-01-12"),
    align = c("left", "right", "center")
  )
)

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