Comments (12)
Yes you are correct! I've actually had a few people over the past month email me about nested groups and I've had to tell them that unfortunately I released this package just before nested groups were implemented in visjs.
I've been meaning to update to the latest visjs but I'm swamped with work on other projects and can't do this for at least the next few weeks.
I would very happily accept a PR if you have the time and patience to update the version and ensure current code isn't broken :)
from timevis.
@WaitNkill were you able to get nested groups to work with timevis, by providing all the code within R? Or did you use javascript code for nested groups?
I'm looking into updating to visjs 4.19, but there are a couple issues when it runs as an htmlwidget (any item with a time doesn't show up in RStudio Viewer, in order to edit an item you need to double click instead of single click on it). So I want to see if there are benefits to upgrading - if you got nested groups to work that that'd be a nice benefit because several people asked about it
from timevis.
@daattali - sorry i originally thought i got it to work- the timeline does show the nested groups, but the collapse and uncollapse is not working. So far all i changed was some R in order for a list to be passed rather than just a df, I also added listener to track timeline.GroupsData to debug, still couldnt figure out the issue, will play with it today and will let you know
from timevis.
from timevis.
@daattali - When i originally just swapped viz.js, i did notice 2 tabs on your example wasnt showing any data- i did have to reformat the sampledata.R File, and put back the "T" (2014-07-13 T16:00) within the datasets. I'm at home now, but i'll upload what i did when i get a chance, i also incorporated the listview package that way, i can easily edit the data on the fly.
looking over your changes, you just went and changed the update groups api , am i seeing that right? i went ahead and changed the timevis function that way you can pass a nested list through the main function, ( so had to edit all the dataframe checks you had in place).
from timevis.
from timevis.
@daattali - Hey sorry never got back to you, i realized vis.js is limited on the amount of nesting. So my focus shifted towards buidling out a widget using https://docs.dhtmlx.com/gantt/.
Also after reading some of the issues in vis 4.19, i was going to say you should hold off on this update until they release 4.20, but then i just saw he pushed out 4.20 yesterday.
Im still interested in using vis.js, but not for my current project, I'll let you know if i ever get some free time to contribute on any of your future releases.
Thanks
from timevis.
I'll take a look at 4.20, thanks. That other library seems much more feature rich , good luck
from timevis.
part of #50
from timevis.
Closing because there's an issue about upgrading to a newer version
from timevis.
I'm wondering, does nestedgroups work in R, then?
When passing in a list-col (of S3: Glue objects), they seem to be coreced to the following form:
"c(\"Id1\", \"Id2\")"
Is there something I should be doing to make this parse to a JSON array?
from timevis.
Sorry to use this issue:
@WaitNkill Were you able to use dhtmlx gantt with R?
from timevis.
Related Issues (20)
- timezone argument fails in shiny but works in console HOT 1
- Online demo license expired HOT 2
- timeline-arrows package HOT 1
- Deselecting Items does not trigger observeEvent(input$timeline_selected,{}) (RShiny) HOT 1
- Changing language in the viewer HOT 1
- About the language HOT 1
- On which version of visjs-Timeline is Timevis running? HOT 1
- How to format dates in the data retrieved from the widget? HOT 2
- wrong date on timeline HOT 3
- timevis not running in Quarto .qmd HOT 3
- name of the month is an abbreviation in Ukrainian HOT 1
- Crosstalk error: Error: timevis: 'data' must be a data.frame HOT 2
- timevis is excellent HOT 1
- No support for portuguese? HOT 1
- Error using `{crosstalk}` with `timevis()` HOT 1
- Cannot assign HTML attributes to table in content HOT 3
- Handlebars Template stripped out of classes HOT 3
- Stacking performance - update vis.js version? HOT 1
- Show warning or error on duplicate id's HOT 1
- Visualisation Shaking HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timevis.