daattali / timevis

📅 Create interactive timeline visualizations in R
http://daattali.com/shiny/timevis-demo/
Other
655 stars 157 forks source link

subgroupOrder syntax #29

Closed deanhardy closed 7 years ago

deanhardy commented 7 years ago

Not so much an issue, but I'm curious what the syntax is for the subgroupOrder argument. I haven't seen it in the code here or in the help via ?timevis(). Thanks.

daattali commented 7 years ago

Take a look at the timeline JS library example of using subgroupOrder http://visjs.org/examples/timeline/groups/subgroups.html (you'd have to look at the source of that webpage to see the javascript configuration that resulted in that. Once you see the JS configuration, try to mimic the same object in R - I think it'll mean just adding another column to the groups dataframe)

If you look at that example and still can't figure it out, please post your question on stackoverflow and link me to it, and I'll try to answer when I can